Take the Age type from chapter 3 as an example (source code).
Suppose I want to create a Person class, that EF will map to a table...
public class Person
{
public int Id { get; set; }
public string Name { get; set; } = "";
public Age Age { get; set; }
}
I don't want Age to be mapped to a table, but can't see a way of convincing EF Core about this.
Anyone any ideas? Can we even use custom types with EF Core?
Thanks
Take the
Agetype from chapter 3 as an example (source code).Suppose I want to create a
Personclass, that EF will map to a table...I don't want
Ageto be mapped to a table, but can't see a way of convincing EF Core about this.Anyone any ideas? Can we even use custom types with EF Core?
Thanks