sergey wrote:
This should work better in the latest version (1.0.2), if it doesn't, please report more details - the code you try to execute, the exception you are getting, etc.
Sergey,
Thanks for the quick reaction. I am using using 1.0.2 as we speak. I have included the source code in my solution, to find out what is going on. This information might help you further:
The exception I get is a FileNotFoundException, thrown in ReflectHelper - TypeFromAssembly. An attempt to load the type with Type.GetType() did not return a type, and the code tries to load the assembly with a call to LoadWithPartialName. It is in this call that the exception is thrown.
This is the code that I wrote myself:
Code:
/// <summary>
/// Constructor
/// </summary>
public Mapping2DDLHelper(string pathToAssembly, string connectionString, string databaseDialect)
{
_assembly = Assembly.LoadFrom(pathToAssembly);
_configuration.AddAssembly(_assembly);
}
The exception is thrown in the last line ...
Regards,
Serge