Example #1
0
 /// <inheritdoc/>
 IEnumerable <IForeignKey> ITableBase.GetReferencingRowInternalForeignKeys(IEntityType entityType)
 => ReferencingRowInternalForeignKeys != null &&
 ReferencingRowInternalForeignKeys.TryGetValue(entityType, out var foreignKeys)
         ? foreignKeys
         : (GetMappedEntityType(entityType) == null)
             ? null
             : Enumerable.Empty <IForeignKey>();
Example #2
0
        IEnumerable <IForeignKey> ITableBase.GetReferencingRowInternalForeignKeys(IEntityType entityType)
        {
            if (ReferencingRowInternalForeignKeys != null &&
                ReferencingRowInternalForeignKeys.TryGetValue(entityType, out var foreignKeys))
            {
                return(foreignKeys);
            }

            CheckMappedEntityType(entityType);
            return(Enumerable.Empty <IForeignKey>());
        }