I would like to create a base class that is somewhat generic for all of my entities. The class would have methods like Save(), Delete(), GetByID() and some other basic functionality and properties. I have more experience with Linq to SQL and was hoping to get some good examples for something similar in the EF. Thank you.
相关问题
- I have some questions about Sapper/Svelte
- Doctrine return null in place of EntityNotFoundExc
- C# .NET 4.0 Testing Framework?
- What is the purpose of each of the System.Componen
- Convert decimal to balanced Heptavintimal
相关文章
- Is there a way to modify the entity mapping config
- How to apply Static Weaving Ant Task with Eclipse-
- NSLocalizedString not defaulting to Base language
- Swift and Objective-c framework exposes its intern
- Anyone know about Rhomobile?
- State Machine Framework for JBoss/Java? [closed]
- How to manage SqlDataReaders in a data access laye
- Using a stored procedure in entity framework, how
Like this:
The ADO.NET Entity Framework supports both Table-per-hierarchy and Table-per-type inheritance. I suggest you start here to see how it works.