コード例 #1
0
        protected virtual IUserRoleMvoStateCreated Map(ICreateUserRoleMvo c)
        {
            var stateEventId           = new UserRoleMvoStateEventId(c.UserRoleId, c.UserVersion);
            IUserRoleMvoStateCreated e = NewUserRoleMvoStateCreated(stateEventId);

            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;
            ReflectUtils.CopyPropertyValue("CommandId", c, e);


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


            return(e);
        }
コード例 #2
0
        protected UserRoleMvoStateDeleted NewUserRoleMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new UserRoleMvoStateEventId(_state.UserRoleId, ((IUserRoleMvoStateProperties)_state).UserVersion);
            var e            = NewUserRoleMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
コード例 #3
0
        protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c)
        {
            var stateEventId           = new UserRoleMvoStateEventId(c.UserRoleId, c.UserVersion);
            IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId);

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


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


            return(e);
        }
コード例 #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            UserRoleMvoStateEventId other = obj as UserRoleMvoStateEventId;

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

            return(true &&
                   Object.Equals(this.UserRoleId, other.UserRoleId) &&
                   Object.Equals(this.UserVersion, other.UserVersion)
                   );
        }
コード例 #5
0
 private UserRoleMvoStateDeleted NewUserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId)
 {
     return(new UserRoleMvoStateDeleted(stateEventId));
 }
コード例 #6
0
 private UserRoleMvoStateMergePatched NewUserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId)
 {
     return(new UserRoleMvoStateMergePatched(stateEventId));
 }
コード例 #7
0
 public UserRoleMvoStateEventIdFlattenedDto(UserRoleMvoStateEventId val)
 {
     this._value = val;
 }
コード例 #8
0
 public UserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #9
0
 public UserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #10
0
 protected UserRoleMvoStateEventBase(UserRoleMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }