请告诉我如何为拥有的类型生成单个数据库表。这是我的模特
public class Price
{
public string OrderId { get; set; }
public Money Money { get; set; }
public Error Error { get; set; }
public PriceType PriceType { get; set; } // enum
[ConcurrencyCheck]
public DateTimeOffset UpdatedOn { get; set; }
}
public class Money
{
public string Currency { get; set; }
public decimal Amount { get; set; }
}
public class Error
{
public ErrorType Type { get; set; }
public string Message { get; set; }
}