NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Expresses a dependency on an EntityManagerFactory and its
associated persistence unit.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public sealed class PersistenceUnit : Attribute
Members
All Members | Constructors | Fields |
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
PersistenceUnit()()()() | Initializes a new instance of the PersistenceUnit class | |
Name | (Optional) The name by which the entity manager factory is to be accessed
in the environment referencing context; not needed when
dependency injection is used.
| |
UnitName | (Optional) The name of the persistence unit as defined in the
persistence.xml file. If specified, the
persistence unit for the entity manager factory that is
accessible in JNDI must have the same name.
|
Inheritance Hierarchy
System..::..Object
System..::..Attribute
NPersistence..::..PersistenceUnit
System..::..Attribute
NPersistence..::..PersistenceUnit