Entities, Viewstate and postback
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 15 Sep 2007 |
View original | Bookmarked: 0 time(s)
I was fiddling with Entity Framework in a website and was happy to see how smoothly
objects serialize (binary serialization)across postbacks.
Query for one customer along with their SalesOrderHeaders:
Dim query = (From cust In aw.Customer.Include("SalesOrderHeader")
Where cust.CustomerID = 151)
Grab that customer into an object:
Note, I've found a problem with using .First in the query... Include is not working,
so this is a temporary long way around...
For Each c In query
cust=c
Next
Now...