Skip to content

Instantly share code, notes, and snippets.

@tonysneed

tonysneed/DbContext.hbs

Last active Oct 15, 2018
Embed
What would you like to do?
{{> 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

This comment has been minimized.

Copy link

@VinayMishraHP VinayMishraHP commented Oct 15, 2018

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
You can’t perform that action at this time.