public AddReference ( |
||
reference | ||
return | void |
public void AddReference(ReferenceInfo reference)
{
if (references.ContainsKey(reference.Name))
{
throw new InvalidOperationException(string.Format("An item with key {0} has already been added", reference.Name));
}
references.Add(reference.Name, reference);
}
private void AddReferenceInfo(TableInfo tableInfo, PropertyInfo propertyInfo, ReferenceAttribute referenceAttribute) { tableInfo.AddReference(new ReferenceInfo(this, referenceAttribute.ColumnName, propertyInfo.PropertyType, propertyInfo)); }