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

Inheritance: IVisitable
Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Protected Properties

Property Type Description
isDebug bool
isLazyByDefault bool
pluralizeTableNames bool
type2Model IDictionary

Public Methods

Method 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

Method 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 method

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

ActiveRecordModel() public method

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

GetModel() public static method

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

GetModels() public static method

Gets an array containing the Framework.Internal.ActiveRecordModel for every registered ActiveRecord class.
public static GetModels ( ) : Castle.ActiveRecord.Framework.Internal.ActiveRecordModel[]
return 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
return 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
return bool

pluralizeTableNames protected_oe static_oe property

Whether the default inferred table name is plural
protected static bool pluralizeTableNames
return bool

type2Model protected_oe static_oe property

The mapping between a type and a model
protected static IDictionary type2Model
return IDictionary