コード例 #1
0
 public ActionLogW(ActionLog log, User user)
 {
     this.Id = log.Id;
     this.UserId = log.User.Id;
     this.TableName = log.TableName;
     this.FullTableName = log.FullTableName;
     this.On = log.On;
     this.ActionTypeId = log.ActionTypeId;
     this.TableNameBg = log.TableNameBg;
     this.UserName = user.Username;
 }
コード例 #2
0
        public ActionLog ToBase()
        {
            ActionLog log = new ActionLog();

            log.Id = this.Id;
            log.User.Id = this.UserId;
            log.TableName = this.TableName;
            log.FullTableName = this.FullTableName;
            log.On = this.On;
            log.ActionTypeId = this.ActionTypeId;
            log.TableNameBg = this.TableNameBg;

            return log;
        }