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

Bulids an ActiveRecordModel from a type and does some inital validation.
Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
Create ( Type type ) : ActiveRecordModel

Creates a ActiveRecordModel from the specified type.

Private Methods

Method Description
CollectMetaValues ( IList metaStore, PropertyInfo prop ) : void
GetSafeName ( string name ) : string

Remove the generic part from the type name.

IsRootType ( Type type ) : bool
PopulateActiveRecordAttribute ( ActiveRecordAttribute attribute, ActiveRecordModel model ) : void
PopulateModel ( ActiveRecordModel model, Type type ) : void

Populates the model from tye type

ProcessActiveRecordAttribute ( Type type, ActiveRecordModel model ) : void
ProcessFields ( Type type, ActiveRecordModel model ) : void
ProcessImports ( Type type, ActiveRecordModel model ) : void
ProcessJoinedBaseAttribute ( Type type, ActiveRecordModel model ) : void
ProcessProperties ( Type type, ActiveRecordModel model ) : void
ShouldCheckBase ( Type type ) : bool

Method Details

Create() public method

Creates a ActiveRecordModel from the specified type.
public Create ( Type type ) : ActiveRecordModel
type System.Type The type.
return ActiveRecordModel