DbContext.ToString 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 string representation of the DbContext.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Overrides Function ToString As String
'Usage
Dim instance As DbContext
Dim returnValue As String
returnValue = instance.ToString()
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override string ToString()
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
virtual String^ ToString() override
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
abstract ToString : unit -> string
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
override ToString : unit -> string
public override function ToString() : String
Return Value
Type: System.String
The string representation of the DbContext.