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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 923 | Hits: 68

Similar Posts

  • Building Interactive User Interfaces with Microsoft ASP.NET AJAX: Triggering Full Page Postbacks From An UpdatePanel more
  • Can you use Web Forms controls with MVC? more
  • Building Interactive User Interfaces with Microsoft ASP.NET AJAX: Enabling Bookmarking and the Browser's Back Button more
  • A few things you can't do with EF queries which you won't find out until runtime more
  • Displaying a Message in Response to Some Action and Then Hiding It on Subsequent Postbacks more
  • Performance Tip: Use Web Service Load On Demand with RadTreeView more
  • Querying with LINQ to Entities vs ObjectQuery in EF more
  • The difference between ID, ClientID and UniqueID more
  • Building Interactive User Interfaces with Microsoft ASP.NET AJAX: Performing Client Actions in Response to Partial Page Postbacks more
  • DevTeach session materials posted more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD