Class AddressType
Represents the type of an address (e.g., Commercial, Residential, Payment).
Inherited Members
Namespace: Innovt.Domain.Adresses
Assembly: Innovt.Domain.dll
Syntax
public sealed class AddressType : ValueObject
Constructors
| Edit this page View SourceAddressType(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 SourceComercial
Gets the predefined address type for commercial addresses.
Declaration
public static readonly AddressType Comercial
Field Value
Type | Description |
---|---|
AddressType |
Pagamento
Gets the predefined address type for payment-related addresses.
Declaration
public static readonly AddressType Pagamento
Field Value
Type | Description |
---|---|
AddressType |
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 SourceName
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 SourceFindAll()
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. |
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. |