113 lines
3.1 KiB
C#
Raw Permalink Normal View History

2025-06-06 14:57:20 +08:00
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
{
/// <summary>
/// 场馆表
/// </summary>
[Table("Y_Stadium")]
public class Y_Stadium : EntityBase
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
///场馆编号
/// </summary>
[Display(Name = "场馆编号")]
[Comment("场馆编号")]
[Column(TypeName = "nvarchar(100)")]
public string StadiumCode { get; set; }
/// <summary>
///场馆名称
/// </summary>
[Display(Name = "场馆名称")]
[Comment("场馆名称")]
[Column(TypeName = "nvarchar(100)")]
public string StadiumName { get; set; }
/// <summary>
///所属省份
/// </summary>
[Display(Name = "所属省份")]
[Comment("所属省份")]
[Column(TypeName = "nvarchar(20)")]
public string? Province { get; set; }
/// <summary>
///所属城市
/// </summary>
[Display(Name = "所属城市")]
[Comment("所属城市")]
[Column(TypeName = "nvarchar(20)")]
public string? City { get; set; }
/// <summary>
///所属区域
/// </summary>
[Display(Name = "所属区域")]
[Comment("所属区域")]
[Column(TypeName = "nvarchar(20)")]
public string? Area { get; set; }
/// <summary>
/// 地址
/// </summary>
[Display(Name = "地址")]
[Comment("地址")]
[Column(TypeName = "nvarchar(2000)")]
public string? Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
[Display(Name = "联系电话")]
[Comment("联系电话")]
[Column(TypeName = "nvarchar(2000)")]
public string PhoneNo { get; set; }
/// <summary>
/// 纬度
/// </summary>
[Display(Name = "纬度")]
[Comment("纬度")]
[Column(TypeName = "float")]
public double Latitude { get; set; } // 纬度
/// <summary>
/// 经度
/// </summary>
[Display(Name = "经度")]
[Comment("经度")]
[Column(TypeName = "float")]
public double Longitude { get; set; } // 经度
/// <summary>
///介绍
/// </summary>
[Display(Name = "介绍")]
[Comment("介绍")]
[Column(TypeName = "text")]
public string? Intro { get; set; }
/// <summary>
///封面图
/// </summary>
[Display(Name = "封面图")]
[Comment("封面图")]
[Column(TypeName = "nvarchar(2000)")]
public string? CoverImage { get; set; }
public List<Y_StadiumResource> StadiumResourceList { get; set; }
}
}