21.166. Class User
Namespace: ArmoniK.Core.Common.Injection.Options.Database
Assembly: ArmoniK.Core.Common.dll
Associate a User to its Roles
public record User : IEquatable<User>
21.166.1. Inheritance
21.166.2. Implements
21.166.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.166.4. Properties
21.166.4.1. Name
User Name
public required string Name { get; init; }
21.166.4.1.1. Property Value
21.166.4.2. Roles
Roles associated to the user
public required List<string> Roles { get; init; }
21.166.4.2.1. Property Value
21.166.5. Methods
21.166.5.1. Equals(User?)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(User? other)
21.166.5.1.1. Parameters
other User?
An object to compare with this object.
21.166.5.1.2. Returns
true if the current object is equal to the other parameter; otherwise, false.
21.166.5.2. FromJson(string)
Build a Associate a User to its Roles from a JSON Represents text as a sequence of UTF-16 code units.
public static User FromJson(string json)
21.166.5.2.1. Parameters
json string
JSON value
21.166.5.2.2. Returns
built from the provided JSON
21.166.5.3. GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
21.166.5.3.1. Returns
A hash code for the current object.
21.166.5.4. ToJson()
Convert Associate a User to its Roles to JSON
public string ToJson()
21.166.5.4.1. Returns
representing the JSON object of this instance