Share via


DbContext.GetType Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Returns the type for the current DbContext.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public Type GetType()

Return Value

Type: System.Type
The type for the current DbContext.

See Also

Reference

DbContext Class

System.Data.Entity Namespace