Пример #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>();
Пример #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>());
        }