EntityObject Class Constructors

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 22 Jan 2009 | View original | Bookmarked: 0 time(s)

Did you know that the default classes generated by the Entity Framework Designer don't have class constructors? And that this is great news? It means that you can create your own class constructors that will always be used when new entity objects are instantiated. This isn't limited to those times when you explicitly instantiate an object, but also when objects are being materialized from data returned by a query. This is a great place to infer defaults that cannot be defined in the model itself. A...

Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1671 | Hits: 32

Similar Posts

  • New Entity Framework Feature CTP for VS2010 Beta 2 more
  • Introducing Versatile DataSources more
  • A generic way to find ASP.NET ClientIDs with jQuery more
  • Entirely unobtrusive and imperative templates with Microsoft Ajax Library Preview 6 more
  • Building a class browser with Microsoft Ajax 4.0 Preview 5 more
  • Next version of EF Code Only Design laid out by MS more
  • An Overview of Partial Classes and Partial Methods more
  • Editing Telerik OpenAccess ORM class-generating templates more
  • Using Stored Procedures for CRUD more
  • Old School Architecture, Bleeding Edge Technology 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