Skip to content

Instantly share code, notes, and snippets.

View anton-putau's full-sized avatar

Anton Putau anton-putau

View GitHub Profile
// current context implementation and config usage
public MembershipDbContext()
: base("ConnectionStringName", throwIfV1Schema: false)
{
Configuration.ProxyCreationEnabled = false;
Configuration.LazyLoadingEnabled = false;
}
// a lot of connection strings like this one
using System;
using System.Threading.Tasks;
namespace TestException
{
class Program
{
static void Main(string[] args)
{
var p = new Program();