This question is locked. New answers and comments are not allowed.
Hi,
I've just downloaded the free edition and experienced a problem with fluent mapping and enums.
This is my class:
And I created the following fluent mapping configuration:
This results in a table with the Id and Bla column only. The Test column is missing.
If I use explicit mapping (MapType(x=> new {......}) ) the Test column is also in the database table.
I really like the implicit mapping - how can I fix this ?
Thank you
Herbert
I've just downloaded the free edition and experienced a problem with fluent mapping and enums.
This is my class:
public
enum
SomeEnum
{
TestA,
TestB,
TestC
}
public
class
SomeClass
{
public
int
Id {
get
;
set
;}
public
string
Bla {
get
;
set
;}
public
SomeEnum Test {
get
;
set
;}
}
And I created the following fluent mapping configuration:
MappingConfiguration<SomeClass> cl=
new
MappingConfiguration<SomeClass>();
cl.MapType().ToTable(
"SomeTable"
);
cl.HasProperty(x => x.Id).IsIdentity(KeyGenerator.Autoinc);
This results in a table with the Id and Bla column only. The Test column is missing.
If I use explicit mapping (MapType(x=> new {......}) ) the Test column is also in the database table.
I really like the implicit mapping - how can I fix this ?
Thank you
Herbert