I'm still struggling to get something like this working with the 2.1 bits:
public struct BlogId
{
public BlogId(int id)
{
Id = id;
}
public int Id { get; set; }
}
public class Blog
{
public BlogId BlogId { get; set; }
public string BlogUrl { get; set; }
public Theme Theme { get; set; }
}
What I'd like is for dotnet ef database update to produce the same structure as if I simply had public int BlogId {get; set; } on Blog. Can you add an example showing how to set up this kind of thing? Thanks!
I'm still struggling to get something like this working with the 2.1 bits:
What I'd like is for
dotnet ef database updateto produce the same structure as if I simply hadpublic int BlogId {get; set; }onBlog. Can you add an example showing how to set up this kind of thing? Thanks!