コード例 #1
0
 public int Insert(InternshipScholarshipsDetails InternshipScholarshipDetail)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             db.InternshipScholarshipsDetails.Add(InternshipScholarshipDetail);
             db.SaveChanges();
             return(InternshipScholarshipDetail.InternshipScholarshipDetailID);
         }
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
 public int Delete(int InternshipScholarshipDetailID, int UserIdentity)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             InternshipScholarshipsDetails InternshipScholarshipDetailObj = db.InternshipScholarshipsDetails.SingleOrDefault(x => x.InternshipScholarshipDetailID.Equals(InternshipScholarshipDetailID));
             db.InternshipScholarshipsDetails.Remove(InternshipScholarshipDetailObj);
             return(db.SaveChanges(UserIdentity));
         }
     }
     catch
     {
         throw;
     }
 }
コード例 #3
0
 public void Delete(InternshipScholarshipsDetails InternshipScholarshipDetail)
 {
     throw new NotImplementedException();
 }