Пример #1
0
 /// <summary>
 ///     Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified
 ///     property are returned. Composite foreign keys that include the specified property are not returned.
 /// </summary>
 /// <param name="entityType"> The entity type to find the foreign keys on. </param>
 /// <param name="property"> The property to find the foreign keys on. </param>
 /// <returns> The foreign keys. </returns>
 public static IEnumerable <IMutableForeignKey> FindForeignKeys(
     [NotNull] this IMutableEntityType entityType, [NotNull] IProperty property)
 => entityType.FindForeignKeys(new[] { property });