Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 private void Init()
 {
     Permissions = new ModelPermissionSettings();
     View        = new ModelViewSettings();
     IO          = new ModelImportSettings();
 }
Ejemplo n.º 3
0
 private void Init()
 {
     Permissions = new ModelPermissionSettings();
     View = new ModelViewSettings();
     IO = new ModelImportSettings();
 }