您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
563 B

  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ModbusDemo.Model
  8. {
  9. /// <summary>
  10. /// 操作数据库的上下文
  11. /// </summary>
  12. public class ModbusDbContext:DbContext
  13. {
  14. public ModbusDbContext()
  15. {
  16. }
  17. public ModbusDbContext(DbContextOptions<ModbusDbContext> options) :base(options)
  18. {
  19. }
  20. public DbSet<ModbusLog> ModbusLog { get; set; }
  21. }
  22. }