public static AppSettingsClassDefinition GetAppSettingsClassDefinition(this DapperProject project)
 => new AppSettingsClassDefinition
 {
     Namespace      = project.GetDataLayerNamespace(),
     AccessModifier = AccessModifier.Public,
     Name           = "AppSettings",
     Properties     =
     {
         new PropertyDefinition(AccessModifier.Public, "string", "ConnectionString")
         {
             IsReadOnly = true
         }
     }
 };
Beispiel #2
0
 public static CSharpClassDefinition GetAppSettingsClassDefinition(this DapperProject project)
 {
     return(new CSharpClassDefinition
     {
         Namespace = project.GetDataLayerNamespace(),
         Namespaces = new List <string>
         {
             "System"
         },
         Name = "AppSettings",
         Properties = new List <PropertyDefinition>
         {
             new PropertyDefinition("String", "ConnectionString")
         }
     });
 }