Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class AddressType

    Represents the type of an address (e.g., Commercial, Residential, Payment).

    Inheritance
    object
    ValueObject
    AddressType
    Inherited Members
    ValueObject.Id
    ValueObject.Equals(object)
    ValueObject.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Domain.Adresses
    Assembly: Innovt.Domain.dll
    Syntax
    public sealed class AddressType : ValueObject

    Constructors

    | Edit this page View Source

    AddressType(int, string)

    Initializes a new instance of the AddressType class.

    Declaration
    public AddressType(int id, string name)
    Parameters
    Type Name Description
    int id

    The unique identifier for the address type.

    string name

    The name of the address type.

    Fields

    | Edit this page View Source

    Comercial

    Gets the predefined address type for commercial addresses.

    Declaration
    public static readonly AddressType Comercial
    Field Value
    Type Description
    AddressType
    | Edit this page View Source

    Pagamento

    Gets the predefined address type for payment-related addresses.

    Declaration
    public static readonly AddressType Pagamento
    Field Value
    Type Description
    AddressType
    | Edit this page View Source

    Residential

    Gets the predefined address type for residential addresses.

    Declaration
    public static readonly AddressType Residential
    Field Value
    Type Description
    AddressType

    Properties

    | Edit this page View Source

    Name

    Gets or sets the name of the address type.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    FindAll()

    Retrieves a list of all available address types, ordered by name.

    Declaration
    public static IList<AddressType> FindAll()
    Returns
    Type Description
    IList<AddressType>

    A list of address types.

    | Edit this page View Source

    GetByPk(int)

    Retrieves an address type based on its unique identifier.

    Declaration
    public static AddressType GetByPk(int id)
    Parameters
    Type Name Description
    int id

    The unique identifier of the address type.

    Returns
    Type Description
    AddressType

    An address type.

    Extension Methods

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