public int Update(T obj) { if (obj is MyEntitiesBase) { MyEntitiesBase o = obj as MyEntitiesBase; o.ModifiedOn = DateTime.Now; o.ModifiedUsername = App.Common.GetCurrentUsurname(); } return(Save()); }
public int Update(T obj) { if (obj is MyEntitiesBase) { MyEntitiesBase o = obj as MyEntitiesBase; o.ModifiedOn = DateTime.Now; o.ModifiedBy = App.common.getCurrentUsername(); //TODO: Buraya bakılacak } return(Save()); }
public int Insert(T obj) { if (obj is MyEntitiesBase) { MyEntitiesBase o = obj as MyEntitiesBase; DateTime now = DateTime.Now; o.CreatedOn = now; o.ModifiedOn = now; o.ModifiedUsername = App.Common.GetCurrentUsurname(); } _objectSet.Add(obj); return(Save()); }
public int Delete(T obj) { if (obj is MyEntitiesBase) { MyEntitiesBase o = obj as MyEntitiesBase; o.ModifiedOn = DateTime.Now; o.ModifiedBy = App.common.getCurrentUsername(); //TODO: Buraya bakılacak modified on created on incelenecek } _objectSet.Remove(obj); return(Save()); }
public int Insert(T obj) { if (obj is MyEntitiesBase) { MyEntitiesBase o = obj as MyEntitiesBase; DateTime now = DateTime.Now; o.CreatedOn = now; o.ModifiedOn = now; o.ModifiedBy = App.common.getCurrentUsername(); //TODO: Buraya bakılacak } _objectSet.Add(obj); return(Save()); }