This question is locked. New answers and comments are not allowed.
I have, maybe a dumb question. If I create my model from the visual designer, is it still possible to use OQL?
The examples I see use the ObjectScopeContainer.
I would like to do something like this if possible:
Is this possible? If so, what is the syntax for this?
Thanks,
King Wilder
The examples I see use the ObjectScopeContainer.
IObjectScope scope = ObjectScopeProvider1.GetNewObjectScope();
string
query =
"SELECT * FROM OrderExtent AS o WHERE o.employee.employeeID=5"
;
var result = scope.GetOqlQuery(query).Execute();
foreach
(Order ord
in
result)
{
Console.WriteLine(ord.OrderID);
}
I would like to do something like this if possible:
using
(var context =
new
MyEntitiesContext())
{
string
query =
"SELECT * FROM OrderExtent AS o WHERE o.employee.employeeID=5"
;
??? Now what?? :^)
}
Is this possible? If so, what is the syntax for this?
Thanks,
King Wilder