More on Foreign Keys in EF

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 30 Aug 2008 | View original | Bookmarked: 0 time(s)

For some background, check out a previous post called "Where's my Foreign Key?" I came across a scenario where I have a foreign key for an entity in the form of an ID. And the scenario is in a web page. I need to turn that ID into an EntityReference, but I don't think that it's fair to ask the UI developer to know enough about EF that they should have to know how to create an EntityKey, much less know about EntityReferences. Rather than force them to pass the ID up to the business layer, I finally...

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: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1048 | Hits: 18

Similar Posts

  • Oredev Wrap-Up more
  • Designer Support for One-Way navigations in Entity Framework 4 more
  • Why not Classic (Legacy) ASP? more
  • Gaia Ajax 3.6 Alpha released: Ajax GridView and Adaptive Rendering ++ more
  • Telerik and Imaginet Resources Introduce Free Developer Team Management Tools Built with RadControls for WPF more
  • Your code via NDepend more
  • Chat room questions from the EF Tips & Tricks webcast more
  • EF Tips & Tricks presentation tomorrow on OReillyNet more
  • Telerik Launches RadControls for Silverlight 3 for Line-of-Business Application Development more
  • EF Table Splitting The Opposite of Entity Splitting 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