The mapping of a property that's of an enumerated type and is part of a composite key seems to have changed from int to string, and there's no way of changing it back.
I've got this data class:
public class Table5
{
public virtual int Value { get; set; }
public virtual Level Level { get; set; }
public virtual string Name { get; set; }
// Equality operators omitted
}
public enum Level
{
Hi,
Lo
}
with this mapping:
public class Table5Map : ClassMap<Table5>
{
public Table5Map()
{
Table("Table5");
CompositeId()
.KeyProperty(x => x.Value)
.KeyProperty(x => x.Level);
Map(x => x.Name);
}
}
The "Level" column in the database is an integer.
This used to work, but with his version of Fluent it attempts to write the strings "Hi" and "Lo" to the Level column.
How do I force it to map to an integer?