ObjectQuery<T>-Konstruktor (String, ObjectContext)
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Erstellt eine neue ObjectQuery<T>-Instanz mit dem angegebenen Entity SQL-Befehl als erste Abfrage.
Namespace: System.Data.Entity.Core.Objects
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Sub New ( _
commandText As String, _
context As ObjectContext _
)
'Usage
Dim commandText As String
Dim context As ObjectContext
Dim instance As New ObjectQuery(commandText, _
context)
public ObjectQuery(
string commandText,
ObjectContext context
)
public:
ObjectQuery(
String^ commandText,
ObjectContext^ context
)
new :
commandText:string *
context:ObjectContext -> ObjectQuery
public function ObjectQuery(
commandText : String,
context : ObjectContext
)
Parameter
- commandText
Typ: System.String
Die Entity SQL-Abfrage.
- context
Typ: System.Data.Entity.Core.Objects.ObjectContext
Der ObjectContext, für den die Abfrage ausgeführt werden soll.