Syntax
| C# |
|---|
[SerializableAttribute] public class ActiveRecordAttribute |
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| ActiveRecordAttributeActiveRecordAttributeNew | Overloaded. |
Public Methods
| Name | Description | |
|---|---|---|
| Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
| ToString | (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Properties
| Name | Description | |
|---|---|---|
| Access |
Gets or sets the access strategy for this property
(Inherited from WithAccessAttribute.) | |
| AccessString |
Gets the access strategy string for NHibernate's mapping.
(Inherited from WithAccessAttribute.) | |
| BatchSize |
From NHibernate documentation:
Specify a "batch size" for fetching instances of
this class by identifier.
| |
| Cache |
Gets or sets the cache strategy to use for this property
(Inherited from BaseAttribute.) | |
| CustomAccess |
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.) | |
| DiscriminatorColumn |
Gets or sets the Discriminator column for
a table inheritance modeling
| |
| DiscriminatorType |
Gets or sets the column type (like string or integer)
for the discriminator column
| |
| DiscriminatorValue |
Gets or sets the value that represents the
target class on the discriminator column
| |
| DynamicInsert |
From NHibernate documentation:
Specifies that INSERT SQL should be
generated at runtime and contain only
the columns whose values are not null.
| |
| DynamicUpdate |
From NHibernate documentation:
Specifies that UPDATE SQL should be
generated at runtime and contain only
those columns whose values have changed.
| |
| Lazy |
Enable lazy loading for the type
| |
| LazySpecified |
Gets a value indicating whether explicit lazy behavior was specified.
If explicit lazy behavior was not specified, it goes to the configuration to decide if the type should
be lazy or not.
| |
| Locking |
From NHibernate documentation:
Determines the optimistic locking strategy.
| |
| Mutable |
From NHibernate documentation:
Specifies that instances of the class are (not) mutable.
| |
| Persister |
From NHibernate documentation:
Specifies a custom IEntityPersister.
| |
| Polymorphism |
From NHibernate documentation:
Determines whether implicit or explicit query polymorphism is used.
| |
| Proxy |
Associates a proxy type with the target type
| |
| Schema |
Gets or sets the schema name associated with the type
| |
| SelectBeforeUpdate |
From NHibernate documentation:
Specifies that NHibernate should never perform an SQL UPDATE
unless it is certain that an object is actually modified. In
certain cases (actually, only when a transient object has
been associated with a new session using update()), this means
that NHibernate will perform an extra SQL SELECT to determine
if an UPDATE is actually required.
| |
| Table |
Gets or sets the table name associated with the type
| |
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) | |
| UseAutoImport |
From NHibernate documentation:
The auto-import attribute lets us use
unqualified class names in the query language,
by default. The assembly and namespace attributes
specify the assembly where persistent classes
are located and the namespace they are declared in.
| |
| Where |
SQL condition to retrieve objects
|
See Also
Castle.ActiveRecord Namespace