Skip to content

Commit

Permalink
Merge pull request #454 from StevenBonePgh/master
Browse files Browse the repository at this point in the history
#388 static CreateModel can call to a partial implementation. Thanks to StevenBonePgh.
  • Loading branch information
sjh37 committed Aug 2, 2018
2 parents 50f0728 + eb926d5 commit 923f728
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,17 @@ foreach(var tbl in from t in Settings.Tables.Where(t => !t.IsMapping && t.HasPri
#>
modelBuilder.Configurations.Add(new <#=tbl.NameHumanCaseWithSuffix() + Settings.ConfigurationClassName#>(schema));
<# } #>
<#if(Settings.DbContextClassIsPartial()) {#>
OnCreateModelPartial(modelBuilder, schema);
<#}#>
return modelBuilder;
}
<#if(Settings.DbContextClassIsPartial()) {#>

partial void InitializePartial();
partial void DisposePartial(bool disposing);
partial void OnModelCreatingPartial(System.Data.Entity.DbModelBuilder modelBuilder);
static partial void OnCreateModelPartial(System.Data.Entity.DbModelBuilder modelBuilder, string schema);
<#}#>
<# if (Settings.StoredProcs.Any())
{ #>
Expand Down

0 comments on commit 923f728

Please sign in to comment.