GeekArticles
Microsoft
ADO.NETTaking Advantage of the Partial Class with the ADO.NET Entity Framework
Author: dotnet.sys-con.com |
Published: 27th Mar 2008 |
Visited: 83 times |
Add CommentFiled in: ADO NETSo you're building your data-driven application and you've got an ADO.NET Entity Model that represents an abstraction around your database. Maybe you're even pretty savvy and you've used inheritance and some filters to enhance the entity model so that it really is an entity model and not just a raw translation of your database schema into objects. One thing that I have noticed is that in a lot of sample code, a lot of utility functions end up being put in inefficient locations because people forget that the entity model is a partial class. This means that you can extend the model with your own properties and methods.
Read Article Sponsored Links
Related Articles
• Swing Extreme Testing - The ShowerThread Class The ShowerThread Class
Since SaveAsDialog.show() blocks, we cannot call this from our main thread; instead we spawn a new thread. This thread could just be an anonymous inner class in the init()metho ...
• Taking Advantage of Standard Internet Protocols Taking Advantage of Standard Internet Protocols
As mentioned, Oracle XML DB provides native support for standard internet protocols, such as WebDAV, and Continuing with the preceding sample, you might, for example, upload another employee XML document into the XML repository with one of the above ...
• How to Best Use Business Intelligence to Your Advantage How to Best Use Business Intelligence to Your Advantage
It is no big secret that today’s businesses rely heavily on data and the information it delivers about their companies. Whether it is for the purpose of customer acquisition, improving operational performance, or understanding competitors, all ...
• How to Best Use Business Intelligence to Your Advantage How to Best Use Business Intelligence to Your Advantage
It is no big secret that today’s businesses rely heavily on data and the information it delivers about their companies. Whether it is for the purpose of customer acquisition, improving operational performance, or understanding competitors,...
...
• SQL Agent: A Job Scheduler Framework An easy-to-use .NET solution for Job Scheduling with pluggable actions that runs on a Windows Service. Back up your SQL Server Express and much m ...