36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using VOL.Entity.DomainModels;
|
|
using YD_WeChatApplet.Api.Entitys;
|
|
|
|
namespace YD_WeChatApplet.Context
|
|
{
|
|
/// <summary>
|
|
/// 用户服务上下文
|
|
/// </summary>
|
|
public class UserContext : DbContext
|
|
{
|
|
public UserContext(DbContextOptions<UserContext> options) : base(options)
|
|
{
|
|
|
|
}
|
|
public DbSet<User> Users { get; set; }
|
|
public DbSet<User_Auth> User_Auth { get; set; }
|
|
|
|
public DbSet<WCA_ResourceDetails> ResourceDetails { get; set; }
|
|
public DbSet<WCA_ResourceType> ResourceType { get; set; }
|
|
public DbSet<WCA_Category> Category { get; set; }
|
|
public DbSet<WCA_Week> Week { get; set; }
|
|
public DbSet<WCA_ExerciseData> ExerciseData { get; set; }
|
|
public DbSet<WCA_UserPreference> UserPreference { get; set; }
|
|
|
|
public DbSet<WCA_UserGroup> UserGroup { get; set; }
|
|
public DbSet<WCA_GroupTask> GroupTask { get; set; }
|
|
public DbSet<WCA_GroupMembers> GroupMembers { get; set; }
|
|
public DbSet<WCA_GroupTaskResult> GroupTaskResult { get; set; }
|
|
public DbSet<WCA_BackgroundMusic> BackgroundMusic { get; set; }
|
|
public DbSet<WCA_PersonalGoal> PersonalGoal { get; set; }
|
|
public DbSet<WCA_PersonalGoalResult> PersonalGoalResult { get; set; }
|
|
public DbSet<WCA_MyPlayList> MyPlayList { get; set; }
|
|
}
|
|
}
|