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; }
public virtual UserRoleMvoStateEventId ToUserRoleMvoStateEventId() { UserRoleMvoStateEventId v = new UserRoleMvoStateEventId(); v.UserRoleId = this.UserRoleId.ToUserRoleId(); v.UserVersion = this.UserVersion; return(v); }
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); }
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); }
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) ); }
public UserRoleMvoStateEventIdFlattenedDto(UserRoleMvoStateEventId val) { this._value = new UserRoleMvoStateEventIdDtoWrapper(val); }
private UserRoleMvoStateDeleted NewUserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId) { return(new UserRoleMvoStateDeleted(stateEventId)); }
private UserRoleMvoStateMergePatched NewUserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId) { return(new UserRoleMvoStateMergePatched(stateEventId)); }
public UserRoleMvoStateDeleted(UserRoleMvoStateEventId stateEventId) : base(stateEventId) { }
public UserRoleMvoStateMergePatched(UserRoleMvoStateEventId stateEventId) : base(stateEventId) { }
protected UserRoleMvoStateEventBase(UserRoleMvoStateEventId stateEventId) { this.StateEventId = stateEventId; }