Creates a Thread Scoped DataContext object that can be reused. The DataContext is stored in Thread local storage.
public static TDbContext GetThreadScopedDbContext<TDbContext>(string connectionStringId,
string key);
Parameters
connectionStringId
optional connection string ID from config file
key
optional key name of the context to cache
See also:
Class DbContextFactory