public override ENTCapability Select(int id) { using (var db = new HRPaidTimeOffDataContext()) { return(db.ENTCapabilitySelectById(id).SingleOrDefault()); } }
public override ENTCapability Select(int id) { using (HRPaidTimeOffDataContext db = new HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOffConnectionString())) { return(db.ENTCapabilitySelectById(id).SingleOrDefault()); } }