static Task <int> Main(string[] args) { return(CodeGenConsoleWrapper .Create("Beef", "Demo") .Supports(entity: true, refData: true, dataModel: true) .EntityScript("TestScript.xml") .RunAsync(args)); }
// 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);
static int Main(string[] args) { return(CodeGenConsoleWrapper.Create("Beef", "Demo").Supports(entity: true, refData: true, dataModel: true).Run(args)); }
/// <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)); }
/// <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)); }