.NET Persistence API: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
The '''.NET Persistence API''', also referred to as '''NPA''', is a persistence and [[Objectobject-Relationalrelational Mapping|Object Relational Mappingmapping]] (ORM)]] specification for the [[.NET Framework|.NET framework]].<ref>http://www.npersistence.org/</ref>
 
NPA is based on the [[Java Persistence API|Java Persistence API]] (JPA)]], which is the standard persistence API in the [[Java (programming language)|Java]] world. NPA follows JPA by providing a complete persistence API and a rich set of ORM features.<ref>http://www.npersistence.org/faq</ref><ref>http://stackoverflow.com/questions/2756307/what-is-the-equivalent-of-jpa-in-net</ref>
 
== Motivation ==
The main purposes of the .NET Persistence API (NPA) are:<ref>http://www.npersistence.org/faq</ref>
* 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|Java Persistence API (JPA)]] to all the .NET programming languages.
 
== Technology ==
The main features of NPA include:<ref>http://www.npersistence.org/api-reference</ref><ref>http://nugetmusthaves.com/Package/NPersistence</ref>
* 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 [[Plain Old CLR Object|POCO (plain old CLR objects)]] objects (entities).
Line 17:
** 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.
Line 27:
 
== External links ==
* [http://www.npersistence.org/ www.npersistence.orgOfficial website]
 
<!--- Categories --->