Help with EF Code first connection string
问题 Im trying to implement a UnitofWork pattern using this Scott Allen tutorial My current SqlUnitOfWork is the folowing public class SqlUnitOfWork : IUnitOfWork { public SqlUnitOfWork() { var connectionString = ConfigurationManager .ConnectionStrings[ConnectionStringName] .ConnectionString; _context = new ObjectContext(connectionString); _context.ContextOptions.LazyLoadingEnabled = true; } public IRepository<PhysicalTest> PhysicalTests { get { if (_physicalTests == null) { _physicalTests = new