Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Last active October 15, 2018 08:46
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 tonysneed/0eaa67b881dad22dfaa8697c37f79dd7 to your computer and use it in GitHub Desktop.
Save tonysneed/0eaa67b881dad22dfaa8697c37f79dd7 to your computer and use it in GitHub Desktop.
{{> dbimports}}
namespace {{namespace}}
{
public partial class {{class}} : DbContext
{
{{> dbsets}}
{{#if entity-type-errors}}
{{#each entity-type-errors}}
{{spaces 8}}{{{entity-type-error}}}
{{/each}}
{{/if}}
{{{on-configuring}}}
{{{on-model-creating}}}
}
}
@VinayMishraHP
Copy link

Hi,
I want to customize {{{on-model-creating}}}
I want to insert
base.OnModelCreating(modelbuilder);
inside {{{on-model-creating}}}

Thank you,

Vinay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment