Пример #1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual Navigation HasDependentToPrincipal(
     [CanBeNull] string name,
     // ReSharper disable once MethodOverloadWithOptionalParameter
     ConfigurationSource configurationSource = ConfigurationSource.Explicit)
 => Navigation(PropertyIdentity.Create(name), configurationSource, pointsToPrincipal: true);
Пример #2
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual Navigation HasPrincipalToDependent(
     [CanBeNull] MemberInfo property,
     // ReSharper disable once MethodOverloadWithOptionalParameter
     ConfigurationSource configurationSource = ConfigurationSource.Explicit)
 => Navigation(PropertyIdentity.Create(property), configurationSource, pointsToPrincipal: false);
Пример #3
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual Navigation HasPrincipalToDependent(
     [CanBeNull] PropertyInfo property,
     ConfigurationSource configurationSource = ConfigurationSource.Explicit,
     bool runConventions = true)
 => Navigation(PropertyIdentity.Create(property), configurationSource, runConventions, pointsToPrincipal: false);