Syntax

C#
[SerializableAttribute]
public class ActiveRecordAttribute

The type exposes the following properties.

Public Properties

  NameDescription
Public propertyAccess
Gets or sets the access strategy for this property
(Inherited from WithAccessAttribute.)
Public propertyAccessString
Gets the access strategy string for NHibernate's mapping.
(Inherited from WithAccessAttribute.)
Public propertyBatchSize
From NHibernate documentation: Specify a "batch size" for fetching instances of this class by identifier.
Public propertyCache
Gets or sets the cache strategy to use for this property
(Inherited from BaseAttribute.)
Public propertyCustomAccess
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.)
Public propertyDiscriminatorColumn
Gets or sets the Discriminator column for a table inheritance modeling
Public propertyDiscriminatorType
Gets or sets the column type (like string or integer) for the discriminator column
Public propertyDiscriminatorValue
Gets or sets the value that represents the target class on the discriminator column
Public propertyDynamicInsert
From NHibernate documentation: Specifies that INSERT SQL should be generated at runtime and contain only the columns whose values are not null.
Public propertyDynamicUpdate
From NHibernate documentation: Specifies that UPDATE SQL should be generated at runtime and contain only those columns whose values have changed.
Public propertyLazy
Enable lazy loading for the type
Public propertyLazySpecified
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.
Public propertyLocking
From NHibernate documentation: Determines the optimistic locking strategy.
Public propertyMutable
From NHibernate documentation: Specifies that instances of the class are (not) mutable.
Public propertyPersister
From NHibernate documentation: Specifies a custom IEntityPersister.
Public propertyPolymorphism
From NHibernate documentation: Determines whether implicit or explicit query polymorphism is used.
Public propertyProxy
Associates a proxy type with the target type
Public propertySchema
Gets or sets the schema name associated with the type
Public propertySelectBeforeUpdate
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.
Public propertyTable
Gets or sets the table name associated with the type
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyUseAutoImport
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.
Public propertyWhere
SQL condition to retrieve objects

See Also