net11.0
namespace Microsoft.EntityFrameworkCore.Metadata
{
    public class RuntimeEntityType : RuntimeTypeBase, IAnnotatable, IReadOnlyAnnotatable, IEntityType, IRuntimeEntityType, IRuntimeTypeBase, IReadOnlyEntityType, IReadOnlyTypeBase, ITypeBase
    {
        public virtual RuntimeForeignKey! AddForeignKey(IReadOnlyList<RuntimeProperty!>! properties, RuntimeKey! principalKey, RuntimeEntityType! principalEntityType, DeleteBehavior deleteBehavior = DeleteBehavior.ClientSetNull, bool unique = false, bool required = false, bool requiredDependent = false, bool ownership = false, bool constrained = true);
    }
}
.NET
11.0
Information specific to net11.0
Assembly

Microsoft.EntityFrameworkCore , Version=11.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.EntityFrameworkCore.

Package Microsoft.EntityFrameworkCore (11.0.0-preview.6.26359.118) net11.0
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API