Otis wrote:
Did you compile the enum dll with .NET 4 perhaps? if not, could you attach the dll and the typeimports file along with your llblgenproj file to this thread, or if you want, to a thread in the helpdesk forum (so only you and us can see the thread) and refer there to this thread? Then we can check where things go wrong.
If you compiled the dll in .net 4, you have to make sure that the designer runs on .net 4 as well: open the llblgenpro.exe.config file in a texteditor and uncomment as described in the file the two lines for .net 4, restart the designer and load your project.
Works fine now, thank you very much.
There is just one issue: I defined all enums as int-enums:
public enum EnumTypeXYZ:int
{
Type1=1,
Type2=2,
}
Doing this will result in a runtime exception (HibernateException: Can't Parse 2 as EnumTypeXYZ).
A way to prevent this is to give a CustomType in the mapping:
Map(x=>x.EnumTypeXYZField).Access.CamelCaseField(Prefix.Underscore).CustomType(typeof(int));
instead of:
Map(x=>x.EnumTypeXYZField).Access.CamelCaseField(Prefix.Underscore);
Maybe you can integrate this in the next build.