C# Class Castle.ActiveRecord.Framework.Internal.ActiveRecordModel

Inheritance: IVisitable
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Protected Properties

Свойство Type Description
isDebug bool
isLazyByDefault bool
pluralizeTableNames bool
type2Model IDictionary

Méthodes publiques

Méthode Description
Accept ( IVisitor visitor ) : void

Accepts the specified visitor and call the relevant IVisitor.Visit***() method

ActiveRecordModel ( Type type ) : System

Initializes a new instance of the ActiveRecordModel class.

GetModel ( Type arType ) : ActiveRecordModel

Gets the Framework.Internal.ActiveRecordModel for a given ActiveRecord class.

GetModels ( ) : Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]

Gets an array containing the Framework.Internal.ActiveRecordModel for every registered ActiveRecord class.

Private Methods

Méthode Description
GetNonProxy ( Type type ) : Type

Get the base type is the object is lazy

Register ( Type arType, ActiveRecordModel model ) : void

Used internally register an association between a type and its model

Method Details

Accept() public méthode

Accepts the specified visitor and call the relevant IVisitor.Visit***() method
public Accept ( IVisitor visitor ) : void
visitor IVisitor The visitor.
Résultat void

ActiveRecordModel() public méthode

Initializes a new instance of the ActiveRecordModel class.
public ActiveRecordModel ( Type type ) : System
type System.Type The type.
Résultat System

GetModel() public static méthode

Gets the Framework.Internal.ActiveRecordModel for a given ActiveRecord class.
public static GetModel ( Type arType ) : ActiveRecordModel
arType System.Type
Résultat ActiveRecordModel

GetModels() public static méthode

Gets an array containing the Framework.Internal.ActiveRecordModel for every registered ActiveRecord class.
public static GetModels ( ) : Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]
Résultat Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]

Property Details

isDebug protected_oe static_oe property

Whatever Active Record will generate debug information or not
protected static bool isDebug
Résultat bool

isLazyByDefault protected_oe static_oe property

Whatever types that does not explicitly state that they are lazy should be lazy.
protected static bool isLazyByDefault
Résultat bool

pluralizeTableNames protected_oe static_oe property

Whether the default inferred table name is plural
protected static bool pluralizeTableNames
Résultat bool

type2Model protected_oe static_oe property

The mapping between a type and a model
protected static IDictionary type2Model
Résultat IDictionary