Skip to content

Instantly share code, notes, and snippets.

public interface IExampleContext
{
IDbSet<Customer> Customers { get; set; }
}
public class ExampleContext : DbContext, IExampleContext, IUnitOfWork
{
public CustomerContext(string nameOrConn) : base(nameOrConn) { }
IDbSet<Customer> Customers { get; set; }