I learned a neat ESQL trick from Danny Simmons today.
The most basic Entity SQL expression is one that would simply query for a single entity with no filters, no projection etc.
context.CreateQuery<Customer>("SELECT VALUE con FROM MYEntityContainer.Contacts AS con")
You can actually express the string using only the target collection:
context.CreateQuery<Customer>("MyEntityContainer.Contacts")
and EF will build the same command tree as it does for the first expression.
Remember Me
See my speaking schedule for more events
User Group Leader
Hosted by:
Powered by: newtelligence dasBlog 2.0.7226.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Julie Lerman
E-mail