I am a beginner of OpenAccess.I am writing some test code according to my experience of "Linq to Sql"
I try to map a allow null int field to "NullAble" enum type property, but fail.
In the Visual Designer of VS.Net, if I set the "Nullable" property to "true" and "Type" property to "MyEnum"("MyEnum" is the enum I defined) to the property in the domain class, the error below will be returned when I compile the project.
The type for member with name "MyEnum" of "MyClass" presistent class is not a valid mapping for its column.
If I set the "Nullable" property to "false" and "Type" property to "MyEnum?" to the property in the domain class, the compiling pass, but the error below will be returned when fetch data from database at runtime.
Type converter initialization failed. The converter with name 'IntConverter' does not convert from CLR type 'System.Nullable`1[[Model.MyEnum, Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' to SQL type 'int'.
But in "Linq to Sql", "NullAble" enum type property can be mapped into a class and work fine.
Thank you for any help in advance!