DbSet<TEntity>.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 DbSet.

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

Syntax

'Declaration
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetType As Type
'Usage
Dim instance As DbSet 
Dim returnValue As Type 

returnValue = instance.GetType()
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public Type GetType()
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
Type^ GetType()
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
member GetType : unit -> Type
public function GetType() : Type

Return Value

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

See Also

Reference

DbSet<TEntity> Class

System.Data.Entity Namespace