Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class Contact

    Represents a contact entity.

    Inheritance
    object
    ValueObject
    ValueObject<int>
    Contact
    Implements
    IValidatableObject
    Inherited Members
    ValueObject<int>.Id
    ValueObject.Equals(object)
    ValueObject.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Domain.Contacts
    Assembly: Innovt.Domain.dll
    Syntax
    public class Contact : ValueObject<int>, IValidatableObject

    Properties

    | Edit this page View Source

    Description

    For example Home, Office etc

    Declaration
    [Required]
    public string Description { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    IsDeleted

    Gets or sets a value indicating whether the contact is deleted.

    Declaration
    public bool IsDeleted { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Name

    Gets or sets the name associated with the contact.

    Declaration
    [Required]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Type

    Gets or sets the contact type.

    Declaration
    [Required]
    public ContactType Type { get; set; }
    Property Value
    Type Description
    ContactType
    | Edit this page View Source

    Value

    Gets or sets the contact value (e.g., phone number, email address).

    Declaration
    [Required]
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Validate(ValidationContext)

    Validates the contact properties based on the contact type.

    Declaration
    public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    The validation context.

    Returns
    Type Description
    IEnumerable<ValidationResult>

    A collection of validation results.

    Implements

    IValidatableObject

    Extension Methods

    Extensions.EnsureIsValid(IValidatableObject, ValidationContext)
    Extensions.IsValid(IValidatableObject, ValidationContext)
    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX