Entity Framework object graphs and viewstate

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 05 Oct 2007 | View original | Bookmarked: 0 time(s)

I've been playing with using EF object in code-behind of aspx web pages. The first issue to hit is postbacks. Entity Objects are Binary Serializable so they can be stored in ViewState. Like many other objects, you need to put your entities into viewstate (I'll deal with session and application caching in another post). Happily entities can be binary serialized so that happens for free when you add an entity object to ViewState.So you can persist the entities, but you cannot persist the ObjectContext,...

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: 1146 | Hits: 372

Similar Posts

  • Introducing Versatile DataSources more
  • EF4: Lazy Loading on By Default but what about pre Beta 2 Models? more
  • Using the ObjectContainer in disconnected scenarios Part 2 more
  • Checking out one of the new stored procedure features in EF4 more
  • System.Data.Linq.Binary is not XmlSerializable more
  • VB Entity Framework Samples Now Available (Lisa Feigenbaum) more
  • Exposing Custom WCF Headers through WCF Behaviors - Part 2 more
  • Customizing EDM Code Gen in EF4 more
  • Validation - Part 2 - Client-Side more
  • You should NOT use ASP.NET MVC if. . . 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