I have something like the classes below, I'd like to map Foo
to a single table with two columns, Id
and State
with values like 1, "BigState"
and 2, "LittleState"
but I'm really struggling to find examples of maps for this.
public class Foo
{
public int Id { get; set; }
public State State { get; set; }
}
public abstract class State
{
}
public class BigState : State
{
}
public class LittleState : State
{
}