public LazyInternalContext(
DbContext owner,
IInternalConnection internalConnection,
DbCompiledModel model,
Func<DbContext, IDbModelCacheKey> cacheKeyFactory = null,
AttributeProvider attributeProvider = null,
Lazy<DbDispatchers> dispatchers = null,
ObjectContext objectContext = null)
: base(owner, dispatchers)
{
DebugCheck.NotNull(internalConnection);
_internalConnection = internalConnection;
_model = model;
_cacheKeyFactory = cacheKeyFactory ?? new DefaultModelCacheKeyFactory().Create;
_attributeProvider = attributeProvider ?? new AttributeProvider();
_objectContext = objectContext;
_createdWithExistingModel = model != null;
LoadContextConfigs();
}