public MetaModelBuilderRules GetGeneratedRules() { var result = new MetaModelBuilderRules(); result.ModelEntityRules.AddRange(this._RulesModelEntity.GeneratedRules.Values); result.ModelComplexTypeRules.AddRange(this._RulesModelComplexType.GeneratedRules.Values); result.ModelPropertyRules.AddRange(this._RulesModelProperty.GeneratedRules.Values); result.ModelIndexRules.AddRange(this._RulesModelIndex.GeneratedRules.Values); result.ModelIndexPropertyRules.AddRange(this._RulesModelIndexProperty.GeneratedRules.Values); result.ModelScalarTypeRules.AddRange(this._RulesModelScalarType.GeneratedRules.Values); return(result); }
public void Initialize(MetaModelBuilderRules rules) { if (rules != null) { this._RulesModelEntity.Initialize(rules.ModelEntityRules); this._RulesModelComplexType.Initialize(rules.ModelComplexTypeRules); this._RulesModelProperty.Initialize(rules.ModelPropertyRules); this._RulesModelIndex.Initialize(rules.ModelIndexRules); this._RulesModelIndexProperty.Initialize(rules.ModelIndexPropertyRules); this._RulesModelScalarType.Initialize(rules.ModelScalarTypeRules); this._RulesModelRelation.Initialize(rules.ModelRelationRules); } }