Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@NeelBhatt
Created January 6, 2019 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeelBhatt/920a7dfef2cde511b6041ac73f062fa2 to your computer and use it in GitHub Desktop.
Save NeelBhatt/920a7dfef2cde511b6041ac73f062fa2 to your computer and use it in GitHub Desktop.
Usage:
modelBuilder.Entity("Cat", c =>
{
c.Property<int>("Id");
c.Property<string>("Name");
});
context.Add(new Dictionary<string, object>
{
{ "Entity type name", "Cat" },
{ "Id", 123 },
{ "Name", "Tabby" }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment