public static IList <PageInfo> GetPageInfos(string langCode, EntitiesAlias entity, bool forceUpdate = false) { if (!PageInfos.ContainsKey(langCode)) { PageInfos.GetOrAdd(langCode, new ConcurrentDictionary <EntitiesAlias, IList <PageInfo> >()); } if (!PageInfos[langCode].ContainsKey(entity)) { PageInfos[langCode].GetOrAdd(entity, _commands.GetPageInfos(langCode, entity)); } else if (!PageInfos[langCode][entity].Any() || forceUpdate) { PageInfos[langCode].AddOrUpdate(entity, _commands.GetPageInfos(langCode, entity)); } return(PageInfos[langCode][entity]); }
internal static object GetMasterTableObject(string langCode, EntitiesAlias entity, bool forceUpdate = false) { if (!MasterTables.ContainsKey(langCode)) { MasterTables.GetOrAdd(langCode, new ConcurrentDictionary <EntitiesAlias, object>()); } if (!MasterTables[langCode].ContainsKey(entity)) { MasterTables[langCode].GetOrAdd(entity, _commands.GetMasterTableObject(langCode, entity)); } else if (MasterTables[langCode][entity] == null || forceUpdate) { MasterTables[langCode].AddOrUpdate(entity, _commands.GetMasterTableObject(langCode, entity)); } return(MasterTables[langCode][entity]); }
public static object GetMasterTableObject(EntitiesAlias entity, bool forceUpdate = false) { return(CoreCache.GetMasterTableObject(ActiveUser.LangCode, entity, forceUpdate)); }
/// <summary> /// Gets column validtions based on the table name /// </summary> /// <param name="entity"></param> /// <returns></returns> public static IList <ValidationRegEx> GetValidationRegExpsByEntityAlias(EntitiesAlias entity, bool forceUpdate = false) { return(CoreCache.GetValidationRegExpsByEntityAlias(ActiveUser.LangCode, entity, forceUpdate)); }
/// <summary> /// Gets list of grid coulmn settings based on the entity name /// </summary> /// <param name="entity"></param> /// <returns></returns> public static IList <ColumnSetting> GetGridColumnSettingsByEntityAlias(EntitiesAlias entity, bool forceUpdate, bool isGridSetting) { return(CoreCache.GetGridColumnSettingsByEntityAlias(ActiveUser.LangCode, entity, forceUpdate, isGridSetting)); }
/// <summary> /// Gets list of page information /// </summary> /// <param name="entity"></param> /// <returns></returns> public static IList <PageInfo> GetPageInfos(EntitiesAlias entity, bool forceUpdate = false) { return(CoreCache.GetPageInfos(ActiveUser.LangCode, entity, forceUpdate)); }
internal static IList <ValidationRegEx> GetValidationRegExpsByEntityAlias(string langCode, EntitiesAlias entity, bool forceUpdate = false) { if (!ValidationRegExpressions.ContainsKey(langCode)) { ValidationRegExpressions.GetOrAdd(langCode, new ConcurrentDictionary <EntitiesAlias, IList <ValidationRegEx> >()); } if (!ValidationRegExpressions[langCode].ContainsKey(entity)) { ValidationRegExpressions[langCode].GetOrAdd(entity, _commands.GetValidationRegExpsByEntityAlias(langCode, entity)); } else if (!ValidationRegExpressions[langCode][entity].Any() || forceUpdate) { ValidationRegExpressions[langCode].AddOrUpdate(entity, _commands.GetValidationRegExpsByEntityAlias(langCode, entity)); } return(ValidationRegExpressions[langCode][entity]); }
public IQueryable <ColumnSetting> GridColumnSettings(EntitiesAlias entity, bool forceUpdate = false, bool isGridSetting = false) { _command.ActiveUser = ActiveUser; return(_command.GetGridColumnSettingsByEntityAlias(entity, forceUpdate, isGridSetting).AsQueryable()); }
public static bool CheckRecordUsed(string allRecordIds, EntitiesAlias entity) { return(_commands.CheckRecordUsed(allRecordIds, entity)); }
public bool CheckRecordUsed(string allRecordIds, EntitiesAlias entity) { _command.ActiveUser = ActiveUser; return(_command.CheckRecordUsed(allRecordIds, entity)); }
public IQueryable <LookupReference> GetRefLookup(EntitiesAlias entitiesAlias) { _command.ActiveUser = ActiveUser; return(_command.GetRefLookup(entitiesAlias).AsQueryable()); }
public UserColumnSettings UserColumnSettings(EntitiesAlias entity) { _command.ActiveUser = ActiveUser; return(_command.GetUserColumnSettings(entity)); }
public object GetMasterTableObject(EntitiesAlias entity, bool forceUpdate = false) { _command.ActiveUser = ActiveUser; return(_command.GetMasterTableObject(entity, forceUpdate)); }
public IQueryable <ValidationRegEx> GetValidationRegExpsByEntityAlias(EntitiesAlias entity, bool forceUpdate = false) { _command.ActiveUser = ActiveUser; return(_command.GetValidationRegExpsByEntityAlias(entity, forceUpdate).AsQueryable()); }
/// <summary> /// Gets user coulmn settings based on the entity name /// </summary> /// <param name="entity"></param> /// <returns></returns> #endregion Cached Results public static UserColumnSettings GetUserColumnSettings(EntitiesAlias entity) { return(_commands.GetUserColumnSettings(ActiveUser.UserId, entity)); }
public static IList <LookupReference> GetRefLookup(EntitiesAlias entitiesAlias) { return(_commands.GetRefLookup(ActiveUser, entitiesAlias)); }
internal static IList <ColumnSetting> GetGridColumnSettingsByEntityAlias(string langCode, EntitiesAlias entity, bool forceUpdate = false, bool isGridSetting = false) { if (!GridColumnSettings.ContainsKey(langCode)) { GridColumnSettings.GetOrAdd(langCode, new ConcurrentDictionary <EntitiesAlias, IList <ColumnSetting> >()); } if (!GridColumnSettings[langCode].ContainsKey(entity)) { GridColumnSettings[langCode].GetOrAdd(entity, _commands.GetGridColumnSettingsByEntityAlias(langCode, entity, isGridSetting)); } else if (!GridColumnSettings[langCode][entity].Any() || forceUpdate) { GridColumnSettings[langCode].AddOrUpdate(entity, _commands.GetGridColumnSettingsByEntityAlias(langCode, entity, isGridSetting)); } return(GridColumnSettings[langCode][entity]); }
public static UserSecurity GetUserPageOptnLevelAndPermission(long userId, long orgId, long roleId, EntitiesAlias entity) { return(_commands.GetUserPageOptnLevelAndPermission(userId, orgId, roleId, entity, ActiveUser)); }
public IQueryable <PageInfo> GetPageInfos(EntitiesAlias entity, bool forceUpdate = false) { _command.ActiveUser = ActiveUser; return(_command.GetPageInfos(entity, forceUpdate).AsQueryable()); }