public void Initialize() { this.Store.RelationBuilder.Initialize(this, this.modelType); this.Model = this.GetCachedMetadata <IRelationMetadata>(this.Notation.Model()); foreach (IMetadataBuilder builder in this.Store.Builders) { MetadataBuilderContext context = new MetadataBuilderContext(this, this.Model); builder.Initialize(context); } }
private Schema CreateSchema(Type modelType) { Schema newSchema = new Schema(this, modelType); foreach (IMetadataBuilder builder in this) { MetadataIdentity newIdentity = new MetadataIdentity(newSchema, this.Notation.Model()); MetadataBuilderContext context = new MetadataBuilderContext(newIdentity, newSchema); builder.Initialize(context); } return(newSchema); }