DbContextFactory.GetWebRequestOrThreadScopedDataContext<TDbContext>

Retrieves a Web Request DbContext if available. If not available will use a thread scoped DbContext instead

public static TDbContext GetWebRequestOrThreadScopedDataContext<TDbContext>(string connectionStringId)

Parameters

connectionStringId
Optional connection string ID from .config file


See also:

Class DbContextFactory

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic