Beispiel #1
0
        public int Update(T obj)
        {
            if (obj is basicEntity)
            {
                basicEntity o = obj as basicEntity;

                //o.ModifiedOn = DateTime.Now;
                //o.ModifiedUsername = App.Common.GetCurrentUsername();
            }

            return(Save());
        }
Beispiel #2
0
        public int Insert(T obj)
        {
            _objectSet.Add(obj);

            if (obj is basicEntity)
            {
                basicEntity o   = obj as basicEntity;
                DateTime    now = DateTime.Now;

                //o.CreatedOn = now;
                //o.ModifiedOn = now;
                //o.ModifiedUsername = App.Common.GetCurrentUsername();
            }

            return(Save());
        }