示例#1
0
文件: Device.cs 项目: mgerasim/hardx
        public override void Save(Device entity)
        {
            this.Created_At = DateTime.Now;
            this.Updated_At = DateTime.Now;
            this.Creater    = User.CurrentUserId;
            this.Updater    = User.CurrentUserId;
            base.Save(entity);
            Devhistory theHistory = new Devhistory(entity);

            theHistory.Save(theHistory);
        }
示例#2
0
文件: Device.cs 项目: mgerasim/hardx
        public override void Update(Device entity)
        {
            Store theStore = new Store();

            theStore        = theStore.GetById(entity.Store.ID);
            this.Updated_At = DateTime.Now;
            this.Updater    = User.CurrentUserId;
            base.Update(entity);
            Devhistory theHistory = new Devhistory(entity);

            theHistory.Save(theHistory);
        }