From: <fab...@us...> - 2009-06-26 14:15:36
|
Revision: 4533 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4533&view=rev Author: fabiomaulo Date: 2009-06-26 14:15:32 +0000 (Fri, 26 Jun 2009) Log Message: ----------- Fix NH-1853 (does not need test because it delegate the logic to an existing method) Modified Paths: -------------- branches/2.1.x/nhibernate/src/NHibernate/Cfg/Configuration.cs Modified: branches/2.1.x/nhibernate/src/NHibernate/Cfg/Configuration.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate/Cfg/Configuration.cs 2009-06-25 15:24:23 UTC (rev 4532) +++ branches/2.1.x/nhibernate/src/NHibernate/Cfg/Configuration.cs 2009-06-26 14:15:32 UTC (rev 4533) @@ -649,7 +649,24 @@ } } - // Not ported - addResource(String path) - not applicable + /// <summary> + /// Adds the mappings from ebedded resources of the assembly. + /// </summary> + /// <param name="paths">Paths to the resource files in the assembly.</param> + /// <param name="assembly">The assembly that contains the resource files.</param> + /// <returns>This configuration object.</returns> + public Configuration AddResources(IEnumerable<string> paths, Assembly assembly) + { + if (paths == null) + { + throw new ArgumentNullException("paths"); + } + foreach (var path in paths) + { + AddResource(path, assembly); + } + return this; + } /// <summary> /// Read a mapping from an embedded resource, using a convention. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |