internal void OnMenuGenerateCQRSModelCode(object sender, EventArgs e) { // Show the model code settings, to allow the user to change them if neccessary if (null != GetCurrentCQRSModel()) { // Code generation for the specified model... CodeGeneration.ModelCodeGenerator codeGen = new CodeGeneration.ModelCodeGenerator(GetCurrentCQRSModel()); if (null != codeGen) { codeGen.GenerateCode(); } } }
internal void OnMenuGenerateCQRSModelCode(object sender, EventArgs e) { if (null != GetCurrentCQRSModel()) { // TODO: Show the model code settings, to allow the user to change them if neccessary CQRSAzure.CQRSdsl.CustomCode.Interfaces.IModelCodeGenerationOptions options = GetCurrentCQRSModel().GetCodeGenerationOptions(); if (null == options) { options = ModelCodeGenerationOptions.Default(); } // Code generation for the specified model... CodeGeneration.ModelCodeGenerator codeGen = new CodeGeneration.ModelCodeGenerator(GetCurrentCQRSModel(), options); if (null != codeGen) { codeGen.GenerateCode(); } } }