protected sealed override ConfigScaffolderModel CreateModel() { ConfigScaffolderModel model = new ConfigScaffolderModel(Context); // model.ConfigName = model.GetModifiedName(MvcProjectUtil.ConfigName, model.CodeFileExtension); model.IsDataContextSupported = true; return(model); }
public void RecordControllerTelemetryOptions(CodeGenerationContext context, ConfigScaffolderModel model) { if (context == null) { throw new ArgumentNullException("context"); } if (model == null) { throw new ArgumentNullException("model"); } //WebApiControllerScaffolderOptions options = WebApiControllerScaffolderOptions.CreatedController; //if (model.IsAsyncSelected) //{ // options |= WebApiControllerScaffolderOptions.IsAsyncSelected; //} //context.AddTelemetryData(TelemetrySharedKeys.WebApiControllerScaffolderOptions, (uint)options); }
protected override object CreateViewModel(ConfigScaffolderModel model) { return(new ConfigScaffolderViewModel(model)); }