Table of Contents

Class Location

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll
[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

Country

CountryCodeISO

public required string CountryCodeISO { get; set; }

Property Value

string

Id

[Key]
public long Id { get; set; }

Property Value

long

Latitude

public double? Latitude { get; set; }

Property Value

double?

Longitude

public double? Longitude { get; set; }

Property Value

double?

Name

public required string Name { get; set; }

Property Value

string

Region

[ForeignKey("RegionCode, CountryCodeISO")]
public required Region Region { get; set; }

Property Value

Region

RegionCode

public required string RegionCode { get; set; }

Property Value

string

ZipCode

public required string ZipCode { get; set; }

Property Value

string

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.