Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Added Init() call to POCO parametered constructor. Releasing as 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
msawczyn committed Oct 12, 2017
1 parent fb06ae0 commit 62b6d12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified dist/Sawczyn.EFDesigner.EFModel.DslPackage.vsix
Binary file not shown.
6 changes: 3 additions & 3 deletions src/Dsl/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle(@"")]
[assembly: AssemblyTitle(@"EntityFramework Designer")]
[assembly: AssemblyDescription(@"")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany(@"Sawczyn")]
[assembly: AssemblyCompany(@"Michael Sawczyn")]
[assembly: AssemblyProduct(@"EFDesigner")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyCopyright("(c) 2017 Michael Sawczyn")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: System.Resources.NeutralResourcesLanguage("en")]
Expand Down
2 changes: 2 additions & 0 deletions src/DslPackage/TextTemplates/EFDesigner.ttinclude
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ void WriteConstructor(ModelClass modelClass)
foreach (NavigationProperty navigationProperty in modelClass.LocalNavigationProperties().Where(x => x.AssociationObject.Persistent && x.IsCollection && !x.ConstructorParameterOnly))
Output($"{navigationProperty.PropertyName} = new {navigationProperty.AssociationObject.CollectionClass}<{navigationProperty.ClassType.Name}>();");

Output("Init();");
NL();
Output("}");
NL();

Expand Down

0 comments on commit 62b6d12

Please sign in to comment.