You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
478 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. public class ModbusDbContext:DbContext
  10. {
  11. protected ModbusDbContext()
  12. {
  13. }
  14. public ModbusDbContext(DbContextOptions<ModbusDbContext> options) :base(options)
  15. {
  16. }
  17. public DbSet<ModbusLog> ModbusLog { get; set; }
  18. }
  19. }