using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ModbusDemo.Model { /// /// 操作数据库的上下文 /// public class ModbusDbContext:DbContext { protected ModbusDbContext() { } public ModbusDbContext(DbContextOptions options) :base(options) { } public DbSet ModbusLog { get; set; } } }