示例#1
0
        protected sealed override ConfigScaffolderModel CreateModel()
        {
            ConfigScaffolderModel model = new ConfigScaffolderModel(Context);

            // model.ConfigName = model.GetModifiedName(MvcProjectUtil.ConfigName, model.CodeFileExtension);
            model.IsDataContextSupported = true;
            return(model);
        }
示例#2
0
        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);
        }
示例#3
0
 protected override object CreateViewModel(ConfigScaffolderModel model)
 {
     return(new ConfigScaffolderViewModel(model));
 }
示例#4
0
        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);
        }