コード例 #1
0
 public override ENTCapability Select(int id)
 {
     using (var db = new HRPaidTimeOffDataContext())
     {
         return(db.ENTCapabilitySelectById(id).SingleOrDefault());
     }
 }
コード例 #2
0
 public override ENTCapability Select(int id)
 {
     using (HRPaidTimeOffDataContext db =
                new HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOffConnectionString()))
     {
         return(db.ENTCapabilitySelectById(id).SingleOrDefault());
     }
 }