public static void LoadAllCodeToMemory() { lock (s_lockerAllCode) { var ds = AllCodeDA.GetAllInAllCode(); s_allCodeCollectionInMemory = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); } }
public List <AllCodeInfo> AllCode_Gets_List() { try { DataSet _ds = AllCodeDA.GetAllInAllCode(); return(CBO <AllCodeInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AllCodeInfo>()); } }