- using Microsoft.EntityFrameworkCore;
- using BelovAPI.ModelBase;
-
- namespace BelovAPI.BaseConnection
- {
- public class ApplicationContext : DbContext
- {
- public DbSet<User> User { get; set; }
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- optionsBuilder.UseSqlServer(Constans.SqlConnection);
- }
- }
- }
|