public ModelSchema() { this._ScalarTypes = new FreezableOwned2KeyedCollection <ModelSchema, string, string, ModelScalarType>( this, (item) => item.Name, ModelUtility.Instance.StringComparer, (item) => item.ExternalName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); this._ComplexTypes = new FreezableOwned2KeyedCollection <ModelSchema, string, string, ModelComplexType>( this, (item) => item.Name, ModelUtility.Instance.StringComparer, (item) => item.ExternalName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); this._Entities = new FreezableOwned2KeyedCollection <ModelSchema, string, string, ModelEntity>( this, (item) => item.Name, ModelUtility.Instance.StringComparer, (item) => item.ExternalName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); this._Relations = new FreezableOwned2KeyedCollection <ModelSchema, string, string, ModelRelation>(this, (item) => item.Name, ModelUtility.Instance.StringComparer, (item) => item.ExternalName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); }
public ModelComplexType() { this._Indexes = new FreezableOwned2KeyedCollection <ModelComplexType, string, string, ModelIndex>( this, GetName, ModelUtility.Instance.StringComparer, GetExternalNameOrName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); this._Properties = new FreezableOwned2KeyedCollection <ModelComplexType, string, string, ModelProperty>( this, GetName, ModelUtility.Instance.StringComparer, GetExternalNameOrName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); this._NavigationProperty = new FreezableOwned2KeyedCollection <ModelComplexType, string, string, ModelNavigationProperty>( this, GetName, ModelUtility.Instance.StringComparer, GetExternalNameOrName, ModelUtility.Instance.StringComparer, (owner, item) => { item.Owner = owner; }); }