Class Address
Namespace: Restaurant.Domain.Aggregates.RestaurantAggregate
Assembly: Restaurant.Domain.dll
[Owned]
public sealed class Address : ValueObject
Inheritance
object ← ValueObject ← Address
Inherited Members
ValueObject.Equals\(object?\), ValueObject.GetHashCode\(\), ValueObject.GetCopy\(\), object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
Address\(\)
public Address()
Address\(string, string, string, string, string\)
public Address(string street, string city, string state, string country, string zipcode)
Parameters
street string
city string
state string
country string
zipcode string
Properties
City
[Required]
[MaxLength(100)]
public string City { get; init; }
Property Value
Country
[Required]
[MaxLength(100)]
public string Country { get; init; }
Property Value
State
[Required]
[MaxLength(100)]
public string State { get; init; }
Property Value
Street
[Required]
[MaxLength(200)]
public string Street { get; init; }
Property Value
ZipCode
[Required]
[MaxLength(20)]
public string ZipCode { get; init; }
Property Value
Methods
GetEqualityComponents\(\)
protected override IEnumerable<object> GetEqualityComponents()
Returns
IEnumerable < object \>
Last modified: 21 May 2024