public static bool RunRestrictions(FieldConfigShow rest, TableInfo tableInfo, Info info, string propertyName, EOperation opList) { switch (rest) { case FieldConfigShow.ShowAll: return(RestrictionBlock(tableInfo, info, propertyName, opList)); case FieldConfigShow.HideAll: return(RestrictionAllow(tableInfo, info, propertyName, opList)); } return(false); }
public static TableInfo AndConfigureShow(this TableInfo source, FieldConfigShow fieldConfigShow) { source.FieldsConfigShow = fieldConfigShow; return(source); }