SetDbContextForKey() public method

Stores the db context into a dictionary using the specified key. If an object context already exists by the specified key, it gets overwritten by the new object context passed in.
public SetDbContextForKey ( string key, DbContext context ) : void
key string The key.
context DbContext
return void
        public void SetDbContextForKey(string factoryKey, DbContext context)
        {
            SimpleDbContextStorage storage = GetSimpleDbContextStorage();

            storage.SetDbContextForKey(factoryKey, context);
        }