public AHIDZONEMASTER GetHidZoneMaster(string entry_sec_id, string leave_adr) { AHIDZONEMASTER hid_zone_master = null; using (DBConnection_EF con = DBConnection_EF.GetUContext()) { hid_zone_master = HIDMasterDao.getHidZoneMaster(con, entry_sec_id, leave_adr); } return(hid_zone_master); }
public Dictionary <string, int> loadAllHIDZoneMAXLoadCount() { List <AHIDZONEMASTER> AHIDZONEMASTERs = null; using (DBConnection_EF con = DBConnection_EF.GetUContext()) { AHIDZONEMASTERs = HIDMasterDao.loadAllHIDZoneMaster(con); } return(AHIDZONEMASTERs.ToDictionary(master => master.ENTRY_SEC_ID.Trim(), master => master.MAX_LOAD_COUNT)); }