using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YD_WeChatApplet.Api.SmartSportsEntitys { /// /// 场馆资源表 /// [Table("Y_StadiumResource")] public class Y_StadiumResource { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Display(Description = "主键Id")] [Comment("Id")] public int Id { get; set; } /// ///场馆Id /// [Display(Name = "场馆Id")] [Comment("场馆Id")] [Column(TypeName = "int")] public int Y_StadiumResourceId { get; set; } /// ///资源类型[1:图片/2:视频] /// [Display(Name = "资源类型[1:图片/2:视频]")] [Comment("资源类型[1:图片/2:视频]")] [Column(TypeName = "int")] public int Type { get; set; } /// /// 资源地址 /// [Display(Name = "资源地址")] [Comment("资源地址")] [Column(TypeName = "nvarchar(2000)")] public string Url { get; set; } public Y_Stadium Stadium { get; set; } } }