diff --git a/bdEmtusa/CodeTemplates/EFCore/DbContext.t4 b/bdEmtusa/CodeTemplates/EFCore/DbContext.t4 index fb6faca..a0a6c10 100644 --- a/bdEmtusa/CodeTemplates/EFCore/DbContext.t4 +++ b/bdEmtusa/CodeTemplates/EFCore/DbContext.t4 @@ -339,13 +339,6 @@ public partial class <#= Options.ContextName #> : DbContext <# mainEnvironment = GenerationEnvironment; GenerationEnvironment = new StringBuilder(); - - WriteLine("// This file has been auto generated by EF Core Power Tools. "); - if (Options.UseNullableReferenceTypes) - { - WriteLine("#nullable enable"); - } - WriteLine(""); foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer())) { diff --git a/bdEmtusa/CodeTemplates/EFCore/EntityType.t4 b/bdEmtusa/CodeTemplates/EFCore/EntityType.t4 index c5bc790..3fbddfb 100644 --- a/bdEmtusa/CodeTemplates/EFCore/EntityType.t4 +++ b/bdEmtusa/CodeTemplates/EFCore/EntityType.t4 @@ -28,7 +28,8 @@ var usings = new List { "System", - "System.Collections.Generic" + "System.Collections.Generic", + "PropertyChanged" }; if (Options.UseDataAnnotations) @@ -65,7 +66,8 @@ namespace <#= NamespaceHint #>; } } #> -public partial class <#= EntityType.Name #> +[AddINotifyPropertyChangedInterface] +public partial class <#= EntityType.Name #> { <# var firstProperty = true; @@ -160,13 +162,6 @@ public partial class <#= EntityType.Name #> <# var previousOutput = GenerationEnvironment; GenerationEnvironment = new StringBuilder(); - - WriteLine("// This file has been auto generated by EF Core Power Tools. "); - if (Options.UseNullableReferenceTypes) - { - WriteLine("#nullable enable"); - } - WriteLine(""); foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer())) {