CreateQuery(T) Method creates an ObjectQuery(T) in the current object context by using the specified T-SQL-like query language. I will replace ADO.NET Entity Framework example with Entity SQL Query. private void button1_Click(object sender, EventArgs e) { using (var context = new AdventureWorksEntities1()) { var q = "SELECT VALUE c " + "FROM Contact AS c " + "WHERE c.LastName='Clark'"; var contacts ...
|
2
shouts |
|
|||
No comments yet, be the first one to post comment.