예제 #1
0
        /// <summary>
        /// Intialize
        /// </summary>
        public EntityController()
        {
            _settings = _entitySettingsHandler();
            var modelSettings = _settings.ModelFor <T>();

            _viewSettings = modelSettings == null ? new ModelSettings().View : modelSettings.View;
            _helper       = new EntityHelper <T>(_settings, typeof(T).Name);
            _modelname    = this.GetType().Name.Replace("Controller", "");
            EntityViewHelper.CheckAndDefaultSettings(modelSettings);
            Init();
        }
예제 #2
0
 private void Init()
 {
     Permissions = new ModelPermissionSettings();
     View        = new ModelViewSettings();
     IO          = new ModelImportSettings();
 }
예제 #3
0
 private void Init()
 {
     Permissions = new ModelPermissionSettings();
     View = new ModelViewSettings();
     IO = new ModelImportSettings();
 }