protected virtual IUserPermissionMvoStateCreated Map(ICreateUserPermissionMvo c) { var stateEventId = new UserPermissionMvoEventId(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; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var userVersion = c.UserVersion; return(e); }
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); }
public virtual void When(ICreateUserPermissionMvo c) { Update(c, ar => ar.Create(c)); }
public virtual void Create(ICreateUserPermissionMvo c) { IUserPermissionMvoStateCreated e = Map(c); Apply(e); }
void IUserPermissionMvoApplicationService.When(ICreateUserPermissionMvo c) { this.When((CreateUserPermissionMvoDto)c); }