예제 #1
0
 protected bool Equals(QnSBillShare.Contracts.Persistence.Account.ILoginSession other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id && IsEqualsWith(Timestamp, other.Timestamp) && UserId == other.UserId && IsEqualsWith(SessionToken, other.SessionToken) && LoginTime == other.LoginTime && LastAccess == other.LastAccess && LogoutTime == other.LogoutTime);
 }
예제 #2
0
        public void CopyProperties(QnSBillShare.Contracts.Persistence.Account.ILoginSession other)
        {
            if (other == null)
            {
                throw new System.ArgumentNullException(nameof(other));
            }
            bool handled = false;

            BeforeCopyProperties(other, ref handled);
            if (handled == false)
            {
                Id           = other.Id;
                Timestamp    = other.Timestamp;
                UserId       = other.UserId;
                SessionToken = other.SessionToken;
                LoginTime    = other.LoginTime;
                LastAccess   = other.LastAccess;
                LogoutTime   = other.LogoutTime;
            }
            AfterCopyProperties(other);
        }
예제 #3
0
 partial void AfterCopyProperties(QnSBillShare.Contracts.Persistence.Account.ILoginSession other);
예제 #4
0
 partial void BeforeCopyProperties(QnSBillShare.Contracts.Persistence.Account.ILoginSession other, ref bool handled);