public CodeGenerateController(IAuth authUtil, ModuleManagerApp moduelApp, IRazorViewEngine viewEngine, ITempDataProvider tempDataProvider,
                                      IServiceProvider serviceProvider) : base(authUtil)
        {
            _moduelApp        = moduelApp;
            _viewEngine       = viewEngine;
            _tempDataProvider = tempDataProvider;
            _serviceProvider  = serviceProvider;
            Assembly assembly = Assembly.GetExecutingAssembly();
            string   loc      = AppDomain.CurrentDomain.BaseDirectory;
            int      indx     = loc.IndexOf("bin");
            string   path     = loc.Substring(0, indx);

            controllerPath         = path + "GeneratorFiles\\OutPut\\Controller\\";
            controllerTxtPath      = path + "GeneratorFiles\\MvcTemplate\\Controller.txt";
            listViewModelTxtPath   = path + "GeneratorFiles\\MvcTemplate\\ListViewModel.txt";
            formDTOTxtPath         = path + "GeneratorFiles\\MvcTemplate\\FormDTO.txt";
            applicationTxtPath     = path + "GeneratorFiles\\MvcTemplate\\AppLication.txt";
            searchViewModelTxtPath = path + "GeneratorFiles\\MvcTemplate\\ReqModel.txt";
            listViewTxtPath        = path + "GeneratorFiles\\MvcTemplate\\ListView.txt";
            viewModelPath          = path + "GeneratorFiles\\OutPut\\ViewModel\\";
            viewPath        = path + "GeneratorFiles\\OutPut\\View\\";
            applacationPath = path + "GeneratorFiles\\OutPut\\Application\\";
            string controllerNs = typeof(BaseController).Namespace;
            string modelNS      = projectName + "Repository.Domain";

            CTS_Dict = new Dictionary <string, string>(15)
            {
                { "SByte", "sbyte" },
                { "Int16", "short" },
                { "Int32", "int" },
                { "Int64", "long" },
                { "Byte", "byte" },
                { "UInt16", "ushort" },
                { "UInt32", "uint" },
                { "UInt64", "ulong" },
                { "Single", "float" },
                { "Double", "double" },
                { "Decimal", "decimal" },
                { "Boolean", "bool" },
                { "Char", "char" },
                { "Object", "object" },
                { "String", "string" },
                { "DateTime", "DateTime" }
            };
        }
示例#2
0
 public ModuleManagerController(IAuth authUtil, ModuleManagerApp app) : base(authUtil)
 {
     _app = app;
 }
示例#3
0
 public ModulesController(IAuth authUtil, ModuleManagerApp app)
 {
     _app      = app;
     _authUtil = authUtil;
 }
示例#4
0
 public HomeController()
 {
     _app = AutofacExt.GetFromFac <ModuleManagerApp>();
 }
示例#5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="app"></param>
 public ModuleManagerController(IAuth authUtil, IHostingEnvironment hostingEnvironment, ModuleManagerApp app) : base(authUtil, hostingEnvironment)
 {
     _app = app;
 }
示例#6
0
 public TestController(ModuleManagerApp app)
 {
     _app = app;
 }