using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YD_WeChatApplet.Api.Entitys;
namespace YD_WeChatApplet.Api.SmartSportsEntitys
{
///
/// 场馆表
///
[Table("Y_Stadium")]
public class Y_Stadium : EntityBase
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
///
///场馆编号
///
[Display(Name = "场馆编号")]
[Comment("场馆编号")]
[Column(TypeName = "nvarchar(100)")]
public string StadiumCode { get; set; }
///
///场馆名称
///
[Display(Name = "场馆名称")]
[Comment("场馆名称")]
[Column(TypeName = "nvarchar(100)")]
public string StadiumName { get; set; }
///
///所属省份
///
[Display(Name = "所属省份")]
[Comment("所属省份")]
[Column(TypeName = "nvarchar(20)")]
public string? Province { get; set; }
///
///所属城市
///
[Display(Name = "所属城市")]
[Comment("所属城市")]
[Column(TypeName = "nvarchar(20)")]
public string? City { get; set; }
///
///所属区域
///
[Display(Name = "所属区域")]
[Comment("所属区域")]
[Column(TypeName = "nvarchar(20)")]
public string? Area { get; set; }
///
/// 地址
///
[Display(Name = "地址")]
[Comment("地址")]
[Column(TypeName = "nvarchar(2000)")]
public string? Address { get; set; }
///
/// 联系电话
///
[Display(Name = "联系电话")]
[Comment("联系电话")]
[Column(TypeName = "nvarchar(2000)")]
public string PhoneNo { get; set; }
///
/// 纬度
///
[Display(Name = "纬度")]
[Comment("纬度")]
[Column(TypeName = "float")]
public double Latitude { get; set; } // 纬度
///
/// 经度
///
[Display(Name = "经度")]
[Comment("经度")]
[Column(TypeName = "float")]
public double Longitude { get; set; } // 经度
///
///介绍
///
[Display(Name = "介绍")]
[Comment("介绍")]
[Column(TypeName = "text")]
public string? Intro { get; set; }
///
///封面图
///
[Display(Name = "封面图")]
[Comment("封面图")]
[Column(TypeName = "nvarchar(2000)")]
public string? CoverImage { get; set; }
public List StadiumResourceList { get; set; }
}
}