Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
.NET Persistence API
Persistence and Object Relational Mapping (ORM) specification

The .NET Persistence API, also referred to as NPA, is a persistence and object–relational mapping (ORM) specification for the .NET framework.

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.

We don't have any images related to .NET Persistence API yet.
We don't have any YouTube videos related to .NET Persistence API yet.
We don't have any PDF documents related to .NET Persistence API yet.
We don't have any Books related to .NET Persistence API yet.
We don't have any archived web articles related to .NET Persistence API yet.

Motivation

The main purposes of the .NET Persistence API (NPA) are:4

  • 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:56

  • 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.78

Wikibooks has a book on the topic of: .NET Development Foundation

References

  1. NPersistence | JPA for the .NET platform http://www.npersistence.org/

  2. "FAQ | NPersistence". Archived from the original on 2012-04-26. Retrieved 2018-08-24. https://web.archive.org/web/20120426082101/http://www.npersistence.org/faq

  3. c# – What is the equivalent of JPA in .NET? – Stack Overflow https://stackoverflow.com/questions/2756307/what-is-the-equivalent-of-jpa-in-net

  4. "FAQ | NPersistence". Archived from the original on 2012-04-26. Retrieved 2018-08-24. https://web.archive.org/web/20120426082101/http://www.npersistence.org/faq

  5. "API Reference". Archived from the original on 2012-04-26. Retrieved 2018-08-24. https://web.archive.org/web/20120426082146/http://www.npersistence.org/api-reference

  6. NPersistence – NuGet Must Haves http://nugetmusthaves.com/Package/NPersistence

  7. "NPA for NHibernate". Archived from the original on 2012-04-26. Retrieved 2011-12-30. https://web.archive.org/web/20120426082225/http://www.npersistence.org/nhibernate

  8. What is the equivalent of Java Persistence API for .NET? – AnandTech Forums https://archive.today/20130928184005/http://forums.anandtech.com/archive/index.php/t-2108535.html