Show / Hide Table of Contents

Interface IDatabaseFactory<TContext>

Interface representing a class creating database contexts.

Inherited Members
System.IDisposable.Dispose()
Namespace:Intranet.Common
Assembly:Intranet.Common.dll
Syntax
public interface IDatabaseFactory<out TContext> : IDisposable where TContext : DbContext, new ()
Type Parameters
Name Description
TContext

Methods

| Improve this Doc View Source

GetDb()

Gets a database context.

Declaration
TContext GetDb()
Returns
Type Description
TContext

Returns a database context.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX