protected virtual IUserPermissionMvoStateCreated Map(ICreateUserPermissionMvo c)
        {
            var stateEventId = new UserPermissionMvoStateEventId(c.UserPermissionId, c.UserVersion);
            IUserPermissionMvoStateCreated e = NewUserPermissionMvoStateCreated(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);
        }
        protected UserPermissionMvoStateDeleted NewUserPermissionMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new UserPermissionMvoStateEventId(_state.UserPermissionId, ((IUserPermissionMvoStateProperties)_state).UserVersion);
            var e            = NewUserPermissionMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
        protected virtual IUserPermissionMvoStateDeleted Map(IDeleteUserPermissionMvo c)
        {
            var stateEventId = new UserPermissionMvoStateEventId(c.UserPermissionId, c.UserVersion);
            IUserPermissionMvoStateDeleted e = NewUserPermissionMvoStateDeleted(stateEventId);

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


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


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

            UserPermissionMvoStateEventId other = obj as UserPermissionMvoStateEventId;

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

            return(true &&
                   Object.Equals(this.UserPermissionId, other.UserPermissionId) &&
                   Object.Equals(this.UserVersion, other.UserVersion)
                   );
        }
 public UserPermissionMvoStateEventIdFlattenedDto(UserPermissionMvoStateEventId val)
 {
     this._value = val;
 }
 public UserPermissionMvoStateDeleted(UserPermissionMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
 public UserPermissionMvoStateMergePatched(UserPermissionMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
 protected UserPermissionMvoStateEventBase(UserPermissionMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
 private UserPermissionMvoStateDeleted NewUserPermissionMvoStateDeleted(UserPermissionMvoStateEventId stateEventId)
 {
     return(new UserPermissionMvoStateDeleted(stateEventId));
 }
 private UserPermissionMvoStateMergePatched NewUserPermissionMvoStateMergePatched(UserPermissionMvoStateEventId stateEventId)
 {
     return(new UserPermissionMvoStateMergePatched(stateEventId));
 }