Exemplo n.º 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()));
        }
Exemplo n.º 2
0
 public static IEnumerable <IReadOnlyForeignKey> GetDerivedForeignKeys([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDerivedForeignKeys();
Exemplo n.º 3
0
 public static IEnumerable <IReadOnlyServiceProperty> GetDeclaredServiceProperties([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDeclaredServiceProperties();
Exemplo n.º 4
0
 public static IEnumerable <IReadOnlyKey> GetDeclaredKeys([NotNull] this IReadOnlyEntityType entityType)
 => entityType.AsEntityType().GetDeclaredKeys();