Ejemplo n.º 1
0
        protected virtual IUserClaimMvoStateMergePatched Map(IMergePatchUserClaimMvo c)
        {
            var stateEventId = new UserClaimMvoStateEventId(c.UserClaimId, c.UserVersion);
            IUserClaimMvoStateMergePatched e = NewUserClaimMvoStateMergePatched(stateEventId);

            e.ClaimType                                 = c.ClaimType;
            e.ClaimValue                                = c.ClaimValue;
            e.Version                                   = c.Version;
            e.Active                                    = c.Active;
            e.UserUserName                              = c.UserUserName;
            e.UserAccessFailedCount                     = c.UserAccessFailedCount;
            e.UserEmail                                 = c.UserEmail;
            e.UserEmailConfirmed                        = c.UserEmailConfirmed;
            e.UserLockoutEnabled                        = c.UserLockoutEnabled;
            e.UserLockoutEndDateUtc                     = c.UserLockoutEndDateUtc;
            e.UserPasswordHash                          = c.UserPasswordHash;
            e.UserPhoneNumber                           = c.UserPhoneNumber;
            e.UserPhoneNumberConfirmed                  = c.UserPhoneNumberConfirmed;
            e.UserTwoFactorEnabled                      = c.UserTwoFactorEnabled;
            e.UserSecurityStamp                         = c.UserSecurityStamp;
            e.UserCreatedBy                             = c.UserCreatedBy;
            e.UserCreatedAt                             = c.UserCreatedAt;
            e.UserUpdatedBy                             = c.UserUpdatedBy;
            e.UserUpdatedAt                             = c.UserUpdatedAt;
            e.UserActive                                = c.UserActive;
            e.UserDeleted                               = c.UserDeleted;
            e.IsPropertyClaimTypeRemoved                = c.IsPropertyClaimTypeRemoved;
            e.IsPropertyClaimValueRemoved               = c.IsPropertyClaimValueRemoved;
            e.IsPropertyVersionRemoved                  = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                   = c.IsPropertyActiveRemoved;
            e.IsPropertyUserUserNameRemoved             = c.IsPropertyUserUserNameRemoved;
            e.IsPropertyUserAccessFailedCountRemoved    = c.IsPropertyUserAccessFailedCountRemoved;
            e.IsPropertyUserEmailRemoved                = c.IsPropertyUserEmailRemoved;
            e.IsPropertyUserEmailConfirmedRemoved       = c.IsPropertyUserEmailConfirmedRemoved;
            e.IsPropertyUserLockoutEnabledRemoved       = c.IsPropertyUserLockoutEnabledRemoved;
            e.IsPropertyUserLockoutEndDateUtcRemoved    = c.IsPropertyUserLockoutEndDateUtcRemoved;
            e.IsPropertyUserPasswordHashRemoved         = c.IsPropertyUserPasswordHashRemoved;
            e.IsPropertyUserPhoneNumberRemoved          = c.IsPropertyUserPhoneNumberRemoved;
            e.IsPropertyUserPhoneNumberConfirmedRemoved = c.IsPropertyUserPhoneNumberConfirmedRemoved;
            e.IsPropertyUserTwoFactorEnabledRemoved     = c.IsPropertyUserTwoFactorEnabledRemoved;
            e.IsPropertyUserSecurityStampRemoved        = c.IsPropertyUserSecurityStampRemoved;
            e.IsPropertyUserCreatedByRemoved            = c.IsPropertyUserCreatedByRemoved;
            e.IsPropertyUserCreatedAtRemoved            = c.IsPropertyUserCreatedAtRemoved;
            e.IsPropertyUserUpdatedByRemoved            = c.IsPropertyUserUpdatedByRemoved;
            e.IsPropertyUserUpdatedAtRemoved            = c.IsPropertyUserUpdatedAtRemoved;
            e.IsPropertyUserActiveRemoved               = c.IsPropertyUserActiveRemoved;
            e.IsPropertyUserDeletedRemoved              = c.IsPropertyUserDeletedRemoved;

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var userVersion = c.UserVersion;


            return(e);
        }
Ejemplo n.º 2
0
        protected UserClaimMvoStateDeleted NewUserClaimMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new UserClaimMvoStateEventId(_state.UserClaimId, ((IUserClaimMvoStateProperties)_state).UserVersion);
            var e            = NewUserClaimMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
Ejemplo n.º 3
0
        protected virtual IUserClaimMvoStateDeleted Map(IDeleteUserClaimMvo c)
        {
            var stateEventId            = new UserClaimMvoStateEventId(c.UserClaimId, c.UserVersion);
            IUserClaimMvoStateDeleted e = NewUserClaimMvoStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            UserClaimMvoStateEventId other = obj as UserClaimMvoStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.UserClaimId, other.UserClaimId) &&
                   Object.Equals(this.UserVersion, other.UserVersion)
                   );
        }
 public UserClaimMvoStateEventIdFlattenedDto(UserClaimMvoStateEventId val)
 {
     this._value = val;
 }
Ejemplo n.º 6
0
 public UserClaimMvoStateDeleted(UserClaimMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 7
0
 public UserClaimMvoStateMergePatched(UserClaimMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 8
0
 protected UserClaimMvoStateEventBase(UserClaimMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Ejemplo n.º 9
0
 private UserClaimMvoStateDeleted NewUserClaimMvoStateDeleted(UserClaimMvoStateEventId stateEventId)
 {
     return(new UserClaimMvoStateDeleted(stateEventId));
 }
Ejemplo n.º 10
0
 private UserClaimMvoStateMergePatched NewUserClaimMvoStateMergePatched(UserClaimMvoStateEventId stateEventId)
 {
     return(new UserClaimMvoStateMergePatched(stateEventId));
 }