예제 #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;
            e.CommandId                = c.CommandId;


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


            return(e);
        }
 public UserRoleMvoStateEventIdDtoWrapper(UserRoleMvoStateEventId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
예제 #3
0
        public virtual UserRoleMvoStateEventId ToUserRoleMvoStateEventId()
        {
            UserRoleMvoStateEventId v = new UserRoleMvoStateEventId();

            v.UserRoleId  = this.UserRoleId.ToUserRoleId();
            v.UserVersion = this.UserVersion;
            return(v);
        }
예제 #4
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);
        }
예제 #5
0
        protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c)
        {
            var stateEventId           = new UserRoleMvoStateEventId(c.UserRoleId, c.UserVersion);
            IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
예제 #6
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)
                   );
        }
예제 #7
0
 public UserRoleMvoStateEventIdFlattenedDto(UserRoleMvoStateEventId val)
 {
     this._value = new UserRoleMvoStateEventIdDtoWrapper(val);
 }
예제 #8
0
 private UserRoleMvoStateDeleted NewUserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId)
 {
     return(new UserRoleMvoStateDeleted(stateEventId));
 }
예제 #9
0
 private UserRoleMvoStateMergePatched NewUserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId)
 {
     return(new UserRoleMvoStateMergePatched(stateEventId));
 }
예제 #10
0
 public UserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
예제 #11
0
 public UserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
예제 #12
0
 protected UserRoleMvoStateEventBase(UserRoleMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }