Sdílet prostřednictvím


OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>.ExcludeFromMigrations Metoda

Definice

Nakonfiguruje tabulku tak, aby byla při migracích ignorována.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> ExcludeFromMigrations (bool excluded = true);
override this.ExcludeFromMigrations : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function ExcludeFromMigrations (Optional excluded As Boolean = true) As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)

Parametry

excluded
Boolean

Hodnota označující, jestli má být tabulka spravována migrací.

Návraty

Stejná instance tvůrce, aby bylo možné zřetězených více volání.

Poznámky

Další informace najdete v tématu Migrace databází .

Platí pro