@@ -26,18 +26,7 @@ public static string Generate(EntityClass entityClass)
2626 codeBuilder
2727 . AppendLine ( "/// <summary>" )
2828 . AppendLine ( "/// Extension methods for FluentCommand" )
29- . AppendLine ( "/// </summary>" ) ;
30-
31- codeBuilder
32- . Append ( "[global::System.CodeDom.Compiler.GeneratedCode(\" " )
33- . Append ( "FluentCommand.Generators" )
34- . Append ( "\" , \" " )
35- . Append ( "1.0.0.0" )
36- . AppendLine ( "\" )]" ) ;
37-
38- codeBuilder
39- . AppendLine ( "[global::System.Diagnostics.DebuggerNonUserCodeAttribute]" )
40- . AppendLine ( "[global::System.Diagnostics.DebuggerStepThroughAttribute]" )
29+ . AppendLine ( "/// </summary>" )
4130 . Append ( "public static partial class " )
4231 . Append ( entityClass . EntityName )
4332 . AppendLine ( "DataReaderExtensions" )
@@ -83,6 +72,11 @@ private static void WriteQuerySingleEntityTask(IndentedStringBuilder codeBuilder
8372 . Append ( entity . EntityName )
8473 . AppendLine ( "\" /> if row exists; otherwise null." )
8574 . AppendLine ( "/// </returns>" )
75+ . Append ( "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\" " )
76+ . Append ( ThisAssembly . Product )
77+ . Append ( "\" , \" " )
78+ . Append ( ThisAssembly . InformationalVersion )
79+ . AppendLine ( "\" )]" )
8680 . Append ( "public static global::System.Threading.Tasks.Task<" )
8781 . Append ( entity . EntityNamespace )
8882 . Append ( "." )
@@ -140,6 +134,11 @@ private static void WriteQueryEntityTask(IndentedStringBuilder codeBuilder, Enti
140134 . Append ( entity . EntityName )
141135 . AppendLine ( "\" /> objects." )
142136 . AppendLine ( "/// </returns>" )
137+ . Append ( "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\" " )
138+ . Append ( ThisAssembly . Product )
139+ . Append ( "\" , \" " )
140+ . Append ( ThisAssembly . InformationalVersion )
141+ . AppendLine ( "\" )]" )
143142 . Append ( "public static global::System.Threading.Tasks.Task<global::System.Collections.Generic.IEnumerable<" )
144143 . Append ( entity . EntityNamespace )
145144 . Append ( "." )
@@ -194,6 +193,11 @@ private static void WriteQuerySingleEntity(IndentedStringBuilder codeBuilder, En
194193 . Append ( entity . EntityName )
195194 . AppendLine ( "\" /> if row exists; otherwise null." )
196195 . AppendLine ( "/// </returns>" )
196+ . Append ( "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\" " )
197+ . Append ( ThisAssembly . Product )
198+ . Append ( "\" , \" " )
199+ . Append ( ThisAssembly . InformationalVersion )
200+ . AppendLine ( "\" )]" )
197201 . Append ( "public static " )
198202 . Append ( entity . EntityNamespace )
199203 . Append ( "." )
@@ -247,6 +251,11 @@ private static void WriteQueryEntity(IndentedStringBuilder codeBuilder, EntityCl
247251 . Append ( entity . EntityName )
248252 . AppendLine ( "\" /> objects." )
249253 . AppendLine ( "/// </returns>" )
254+ . Append ( "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\" " )
255+ . Append ( ThisAssembly . Product )
256+ . Append ( "\" , \" " )
257+ . Append ( ThisAssembly . InformationalVersion )
258+ . AppendLine ( "\" )]" )
250259 . Append ( "public static global::System.Collections.Generic.IEnumerable<" )
251260 . Append ( entity . EntityNamespace )
252261 . Append ( "." )
@@ -298,6 +307,11 @@ private static void WriteEntityFactory(IndentedStringBuilder codeBuilder, Entity
298307 . Append ( entity . EntityName )
299308 . AppendLine ( "\" /> having property names set that match the field names in the <paramref name=\" dataRecord\" />." )
300309 . AppendLine ( "/// </returns>" )
310+ . Append ( "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\" " )
311+ . Append ( ThisAssembly . Product )
312+ . Append ( "\" , \" " )
313+ . Append ( ThisAssembly . InformationalVersion )
314+ . AppendLine ( "\" )]" )
301315 . Append ( "public static " )
302316 . Append ( entity . EntityNamespace )
303317 . Append ( "." )
0 commit comments