예제 #1
0
 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());
 }
예제 #2
0
        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());
        }
예제 #3
0
 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());
 }
예제 #4
0
        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());
        }
예제 #5
0
        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());
        }