예제 #1
0
 public void Update(Member_Action model)
 {
     var entity = Find(model.ID);
     db.Attach<Member_Action>(entity);
     entity.ActionType=model.ActionType;
     entity.MemberID=model.MemberID;
     entity.Description=model.Description;
     entity.IP=model.IP;
     entity.AddTime=model.AddTime;
     db.Commit();
 }
예제 #2
0
 public Member_Action Create(Member_ActionViewModel model)
 {
     var entity = new Member_Action();
     entity.ActionType=model.ActionType;
     entity.MemberID=model.MemberID;
     entity.Description=model.Description;
     entity.IP=model.IP;
     entity.AddTime=model.AddTime;
     db.Add<Member_Action>(entity);
     db.Commit();
     return entity;
 }
예제 #3
0
 public void Delete(Member_Action model)
 {
     var target = Find(model.ID);
     db.Remove<Member_Action>(target);
     db.Commit();
 }
예제 #4
0
 public void Create(Member_Action model)
 {
     db.Add<Member_Action>(model);
     db.Commit();
 }