Пример #1
0
 static Task <int> Main(string[] args)
 {
     return(CodeGenConsoleWrapper
            .Create("Beef", "Demo")
            .Supports(entity: true, refData: true, dataModel: true)
            .EntityScript("TestScript.xml")
            .RunAsync(args));
 }
Пример #2
0
 // To run execute command line: dotnet run database
 static Task <int> Main(string[] args) => CodeGenConsoleWrapper
 // Code generation configuration as follows:
 // - Create - creates the code-generator instance and sets the `Company` and `AppName` parameters.
 // - Supports - turns off the default `entity` support, and turns on `database` code-gen support only.
 // - DatabaseScript - configures the code-gen to use the `DatabaseCdcDacpac.xml` that drives the code-gen templates to be used; this is a CDC-only script designed for DACPAC output.
 // - DatabaseConnectionString - defaults the database connection string; will be overridden by command line arguments '-cs|--connectionString' or environment variable: Xyz_Legacy_ConnectionString
 .Create("Xyz", "Legacy")
 .Supports(entity: false, database: true)
 .DatabaseScript("DatabaseCdcDacpac.xml")
 .DatabaseConnectionString("Data Source=.;Initial Catalog=XyzLegacy;Integrated Security=True")
 .RunAsync(args);
Пример #3
0
 static int Main(string[] args)
 {
     return(CodeGenConsoleWrapper.Create("Beef", "Demo").Supports(entity: true, refData: true, dataModel: true).Run(args));
 }
Пример #4
0
 /// <summary>
 /// Main startup.
 /// </summary>
 /// <param name="args">The startup arguments.</param>
 /// <returns>The status code whereby zero indicates success.</returns>
 public static Task <int> Main(string[] args)
 {
     // Generat the entities, reference data and internal data models.
     return(CodeGenConsoleWrapper.Create("Cdr", "Banking").Supports(entity: true, refData: true, dataModel: true).RunAsync(args));
 }
Пример #5
0
 /// <summary>
 /// Main startup.
 /// </summary>
 /// <param name="args">The startup arguments.</param>
 /// <returns>The status code whereby zero indicates success.</returns>
 public static Task <int> Main(string[] args)
 {
     return(CodeGenConsoleWrapper.Create("Company", "AppName").Supports(entity: true, refData: true).RunAsync(args));
 }