April 2018
Intermediate to advanced
300 pages
7h 41m
English
This project is a .NET Standard 2.0 class library project that reference the core Infrastructure and Vendor.Domain projects. This contains the actual implementation of the VendorRepository and a database context to connect with the backend SQL Server database.
Here is the VendorDBContext class that derives from the DbContext class of EF Core and defines DbSet for the VendorMaster and VendorDocument entities:
public class VendorDBContext : DbContext, IUnitOfWork
{
public VendorDBContext(DbContextOptions options) : base(options)
{
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
// optionsBuilder.UseSqlServer(@"Data Source=.sqlexpress; Initial ...