forked from ddrilling/AsbCloudServer
36 lines
886 B
C#
36 lines
886 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_deposit"), Comment("Месторождение")]
|
|
public partial class Deposit : IId, IMapPoint
|
|
{
|
|
public Deposit()
|
|
{
|
|
Clusters = new HashSet<Cluster>();
|
|
}
|
|
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("caption")]
|
|
[StringLength(255)]
|
|
public string Caption { get; set; }
|
|
|
|
[InverseProperty(nameof(Cluster.Deposit))]
|
|
public virtual ICollection<Cluster> Clusters { get; set; }
|
|
|
|
[Column("latitude")]
|
|
public double Latitude { get; set; }
|
|
|
|
[Column("longitude")]
|
|
public double Longitude { get; set; }
|
|
}
|
|
}
|