.NET Persistence API
The .NET Persistence API, also referred to as NPA, is a persistence and object–relational mapping (ORM) specification for the .NET framework.[1]
NPA is based on the Java Persistence API (JPA), which is the standard persistence API in the Java world. NPA follows JPA by providing a complete persistence API and a rich set of ORM features.[2][3]
Motivation
The main purposes of the .NET Persistence API (NPA) are:[2]
- To provide a vendor-free persistence API for .NET, making switching from one persistence provider to another easier (avoiding vendor lock-in).
- To provide a cross-language persistence API by extending the popular Java Persistence API (JPA) to all the .NET programming languages.
Technology
The main features of NPA include:[4][5]
- Object-oriented API for working against databases (usually RDBMS).
- Query language, based on SQL, for retrieving data from the database in an object oriented manner.
- Support of persisting POCO (plain old CLR objects) objects (entities).
- Two methods for marking classes as entity classes and for specifying other settings:
- Using attributes – meta data is embedded in class definitions in the source code.
- Using external XML – meta data is specified in external XML resource files.
Implementations
NPA is a persistence specification. To use NPA an implementation of the specification is required. Persistence and ORM vendors can provide their own implementations of NPA.
First implementation, NPA for NHibernate, was released in December 2011.[6][7]
References
- ^ NPersistence | JPA for the .NET platform
- ^ a b "FAQ | NPersistence". Archived from the original on 2012-04-26. Retrieved 2018-08-24.
- ^ c# – What is the equivalent of JPA in .NET? – Stack Overflow
- ^ "API Reference". Archived from the original on 2012-04-26. Retrieved 2018-08-24.
- ^ NPersistence – NuGet Must Haves
- ^ "NPA for NHibernate". Archived from the original on 2012-04-26. Retrieved 2011-12-30.
- ^ What is the equivalent of Java Persistence API for .NET? – AnandTech Forums
External links
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/40px-Wikibooks-logo-en-noslogan.svg.png)
Wikibooks has a book on the topic of: .NET Development Foundation
- Official website
- v
- t
- e
.NET
- .NET strategy
- Libraries and frameworks
- .NET (Core)
- .NET Framework
- .NET Compact Framework
- .NET Micro Framework
- DotGNU
- Mono
- XNA Framework
- Common Language Runtime (CLR)
- COM Interop
- Framework Class Library (FCL)
- ADO.NET
- ASP.NET
- Avalonia
- ClickOnce
- Dynamic Language Runtime
- Extensible Application Markup Language (XAML)
- Language Integrated Query (LINQ)
- Managed Extensibility Framework
- Microsoft Silverlight
- Microsoft XNA
- Parallel Extensions
- Windows Communication Foundation (WCF)
- Windows Forms (WinForms)
- Windows Identity Foundation (WIF)
- Windows Presentation Foundation (WPF)
- Windows Workflow Foundation (WF)
- .NET Remoting
Obfuscators | |
---|---|
Decompilers | |
Misc |
Category
List
Commons