Owneat Technical Guide main Help

Class CreateUserCommand

Namespace: Identity.Application.Requests.Handlers.User
Assembly: Identity.Application.dll

Command that it passed through request body, contains the updated fields.

public sealed class CreateUserCommand : IRequest<Result<UserResponse>>, IBaseRequest

Inheritance

object ← CreateUserCommand

Implements

IRequest<Result<UserResponse\>\>, IBaseRequest

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Properties

Color

[Required] public long Color { get; init; }

Property Value

long

Email

[Required] [EmailAddress] [StringLength(100)] public string Email { get; init; }

Property Value

string

Firstname

[Required] [StringLength(50)] public string Firstname { get; init; }

Property Value

string

Lastname

[Required] [StringLength(50)] public string Lastname { get; init; }

Property Value

string

Password

[Required] [StringLength(200)] public string Password { get; init; }

Property Value

string

RestaurantId

public Guid? RestaurantId { get; init; }

Property Value

Guid?

RoleId

[Required] public Guid RoleId { get; set; }

Property Value

Guid

Username

[Required] [StringLength(50)] public string Username { get; init; }

Property Value

string

Last modified: 21 May 2024