コード例 #1
0
        public static IReadOnlyEntityType?FindEntityType(
            [NotNull] this IReadOnlyModel model,
            [NotNull] Type type,
            [NotNull] string definingNavigationName,
            [NotNull] IReadOnlyEntityType definingEntityType)
        {
            Check.NotNull(model, nameof(model));
            Check.NotNull(type, nameof(type));
            Check.NotNull(definingNavigationName, nameof(definingNavigationName));
            Check.NotNull(definingEntityType, nameof(definingEntityType));

            return(((Model)model).FindEntityType(
                       type,
                       definingNavigationName,
                       definingEntityType.AsEntityType()));
        }
コード例 #2
0
 public static IEnumerable <IReadOnlyForeignKey> GetDerivedForeignKeys([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDerivedForeignKeys();
コード例 #3
0
 public static IEnumerable <IReadOnlyServiceProperty> GetDeclaredServiceProperties([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDeclaredServiceProperties();
コード例 #4
0
 public static IEnumerable <IReadOnlyKey> GetDeclaredKeys([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDeclaredKeys();