DataContext.cs
863 Bytes
using FreeSql;
using HHECS.DAQClient.Model;
using HHECS.EquipmentModel;
namespace HHECS.DAQClient.DataAccess
{
/// <summary>
/// 数据库上下文
/// </summary>
/// <remarks>参考文档:<a href="https://freesql.net/guide/db-context.html">https://freesql.net/guide/db-context.html</a></remarks>
public sealed class DataContext : DbContext
{
public DbSet<CommunicationConfig> CommunicationConfigs { get; set; } = null!;
public DbSet<Equipment> Equipment { get; set; } = null!;
public DbSet<EquipmentProp> EquipmentProp { get; set; } = null!;
public DbSet<EquipmentType> EquipmentType { get; set; } = null!;
public DbSet<EquipmentTypePropTemplate> EquipmentTypePropTemplate { get; set; } = null!;
public DbSet<EquipmentDataQueue> EquipmentDataQueue { get; set; } = null!;
}
}