46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
|||
|
namespace YD_WeChatApplet.Api.Entitys
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 背景音乐表
|
|||
|
/// </summary>
|
|||
|
[Table("WCA_BackgroundMusic")]
|
|||
|
public class WCA_BackgroundMusic
|
|||
|
{
|
|||
|
[Key]
|
|||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|||
|
[Display(Description = "主键Id")]
|
|||
|
[Comment("Id")]
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///资源类型[1:音乐/2:节拍]
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "资源类型[1:音乐/2:节拍]")]
|
|||
|
[Comment("资源类型[1:音乐/2:节拍]")]
|
|||
|
[Column(TypeName = "int")]
|
|||
|
public int ResourceType { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///名称
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "名称")]
|
|||
|
[Comment("名称")]
|
|||
|
[Column(TypeName = "nvarchar(200)")]
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///资源地址
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "资源地址")]
|
|||
|
[Comment("资源地址")]
|
|||
|
[Column(TypeName = "nvarchar(2000)")]
|
|||
|
public string Url { get; set; }
|
|||
|
}
|
|||
|
}
|