Check out example codes for "entity framework core data seed". It will help you in understanding the concepts better.

Code Example 1

modelBuilder.Entity<Blog>().HasData(new Blog {BlogId = 1, Url = "http://sample.com"});

Learn ReactJs, React Native from akashmittal.com