Beispiel #1
0
        public void Delete(string Id)
        {
            tblLoan op = _db.tblLoans.Find(Id);

            _db.tblLoans.Remove(op);
            Save();
        }
Beispiel #2
0
 public void Update(tblLoan op)
 {
     _db.Entry(op).State = EntityState.Modified;
     _db.Configuration.ValidateOnSaveEnabled = false;
     Save();
     _db.Configuration.ValidateOnSaveEnabled = true;
 }
Beispiel #3
0
 public void Insert(tblLoan op)
 {
     _db.tblLoans.Add(op);
     Save();
 }