25 lines
676 B
C#
25 lines
676 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using birzha_contracts.Models;
|
|
|
|
public class MvcContractContext : DbContext
|
|
{
|
|
public MvcContractContext (DbContextOptions<MvcContractContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
builder.Entity<Contract>(entity => {
|
|
entity.ToTable("tContract");
|
|
});
|
|
}
|
|
|
|
public DbSet<birzha_contracts.Models.Contract> Contract { get; set; } = default!;
|
|
}
|
|
|
|
|