internal void AddEntityField(EntityField field) { BaseFieldsByFieldName.Add(field.Name, field); BaseFieldsByPropertyName.Add(field.PropertyName, field); FieldsByFieldName.Add(field.Name, field); FieldsByPropertyName.Add(field.PropertyName, field); }
internal void AddEntityRelationsToMany(EntityRelation relation) { BaseFieldsByFieldName.Add(relation.TableKey, relation); BaseFieldsByPropertyName.Add(relation.PropertyName, relation); RelationsToManyByFieldName.Add(relation.TableKey, relation); RelationsToManyByPropertyName.Add(relation.PropertyName, relation); }
internal void AddEntityKey(EntityKey key) { BaseFieldsByFieldName.Add(key.Name, key); BaseFieldsByPropertyName.Add(key.PropertyName, key); PrimaryKeysByFieldName.Add(key.Name, key); PrimaryKeysByPropertyName.Add(key.PropertyName, key); }