C# Класс Castle.ActiveRecord.Framework.Internal.ActiveRecordModel

Наследование: IVisitable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
isDebug bool
isLazyByDefault bool
pluralizeTableNames bool
type2Model IDictionary

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Accept() публичный Метод

Accepts the specified visitor and call the relevant IVisitor.Visit***() method
public Accept ( IVisitor visitor ) : void
visitor IVisitor The visitor.
Результат void

ActiveRecordModel() публичный Метод

Initializes a new instance of the ActiveRecordModel class.
public ActiveRecordModel ( Type type ) : System
type System.Type The type.
Результат System

GetModel() публичный статический Метод

Gets the Framework.Internal.ActiveRecordModel for a given ActiveRecord class.
public static GetModel ( Type arType ) : ActiveRecordModel
arType System.Type
Результат ActiveRecordModel

GetModels() публичный статический Метод

Gets an array containing the Framework.Internal.ActiveRecordModel for every registered ActiveRecord class.
public static GetModels ( ) : Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]
Результат Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]

Описание свойств

isDebug защищенное статическое свойство

Whatever Active Record will generate debug information or not
protected static bool isDebug
Результат bool

isLazyByDefault защищенное статическое свойство

Whatever types that does not explicitly state that they are lazy should be lazy.
protected static bool isLazyByDefault
Результат bool

pluralizeTableNames защищенное статическое свойство

Whether the default inferred table name is plural
protected static bool pluralizeTableNames
Результат bool

type2Model защищенное статическое свойство

The mapping between a type and a model
protected static IDictionary type2Model
Результат IDictionary