예제 #1
0
        public virtual void Clone(LoginLogger cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.User = this.User;

            cloneObj.Name = this.Name;

            cloneObj.IP = this.IP;

            cloneObj.Success = this.Success;

            cloneObj.ErrorMsg = this.ErrorMsg;

            cloneObj.LoginDate = this.LoginDate;
        }
예제 #2
0
 private static LoginLogger Create(bool inList)
 {
     LoginLogger entity = new LoginLogger();
     entity.ID = NHExt.Runtime.Util.EntityGuidHelper.New();
     entity.EntityState = NHExt.Runtime.Enums.EntityState.Add;
     if(inList){
     if(Session.Current != null){
     Session.Current.InList(entity);
     }
     }
     return entity;
 }
예제 #3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     LoginLogger cloneObj = new LoginLogger();
     this.Clone(cloneObj);
     return cloneObj;
 }