Class Location
[Table("Locations")]
[Index("ZipCode", new string[] { }, IsUnique = false)]
[Index("Name", new string[] { }, IsUnique = false)]
public class Location
- Inheritance
-
Location
- Inherited Members
Properties
Country
[ForeignKey("CountryCodeISO")]
public required Country Country { get; set; }
Property Value
CountryCodeISO
public required string CountryCodeISO { get; set; }
Property Value
Id
[Key]
public long Id { get; set; }
Property Value
Latitude
public double? Latitude { get; set; }
Property Value
Longitude
public double? Longitude { get; set; }
Property Value
Name
public required string Name { get; set; }
Property Value
Region
[ForeignKey("RegionCode, CountryCodeISO")]
public required Region Region { get; set; }
Property Value
RegionCode
public required string RegionCode { get; set; }
Property Value
ZipCode
public required string ZipCode { get; set; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.