From c5494f60e624cf9d7ed1e2a1088e92c28476548f Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 7 Sep 2026 12:29:32 +0200 Subject: [PATCH] correccion plantillas --- bdEmtusa/CodeTemplates/EFCore/DbContext.t4 | 7 ------- bdEmtusa/CodeTemplates/EFCore/EntityType.t4 | 13 ++++--------- 2 files changed, 4 insertions(+), 16 deletions(-) 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())) {