Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace ModbusDemo.Model
- {
- /// <summary>
- /// 操作数据库的上下文
- /// </summary>
- public class ModbusDbContext:DbContext
- {
-
- public ModbusDbContext(DbContextOptions<ModbusDbContext> options) :base(options)
- {
-
- }
-
- public DbSet<ModbusLog> ModbusLog { get; set; }
- }
- }
|