Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
protected override void OnModelCreating(ModelBuilder modelBuilder)
modelBuilder.Entity<Blog>().Property(x => x.Id);
modelBuilder.Entity<Blog>().HasKey(x => x.Id);
modelBuilder.Entity<Blog>().Property(x => x.Name);
modelBuilder.Entity<Post>().Property(x => x.Id);
modelBuilder.Entity<Post>().HasKey(x => x.Id);
modelBuilder.Entity<Post>().Property(x => x.Title);
modelBuilder.Entity<Post>().Property(x => x.Content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.