December 2018
Beginner to intermediate
668 pages
15h 30m
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 ...Read now
Unlock full access