Udostępnij za pośrednictwem


RelationalEntityTypeBuilderExtensions.ToTable Metoda

Definicja

Przeciążenia

ToTable(OwnedNavigationBuilder, String, String, Boolean)
Przestarzałe.

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, String, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(IConventionEntityTypeBuilder, String, String, Boolean)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(EntityTypeBuilder, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, Boolean)
Przestarzałe.

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(IConventionEntityTypeBuilder, String, Boolean)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(EntityTypeBuilder, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(EntityTypeBuilder, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(EntityTypeBuilder, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(EntityTypeBuilder, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Boolean)
Przestarzałe.

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Boolean)
Przestarzałe.

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

ToTable(OwnedNavigationBuilder, String, String, Boolean)

Przestroga

Use the overload with an Action parameter

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string name, string schema, bool excludedFromMigrations);
[System.Obsolete("Use the overload with an Action parameter")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string? name, string? schema, bool excludedFromMigrations);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
[<System.Obsolete("Use the overload with an Action parameter")>]
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As OwnedNavigationBuilder, name As String, schema As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

excludedFromMigrations
Boolean

Wartość wskazująca, czy tabela powinna być zarządzana przez migracje.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Atrybuty

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of TableBuilder)) As OwnedNavigationBuilder

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, String, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of OwnedNavigationTableBuilder)) As OwnedNavigationBuilder

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<OwnedNavigationTableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(IConventionEntityTypeBuilder, String, String, Boolean)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, string schema, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, string? schema, bool fromDataAnnotation = false);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, schema As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametry

entityTypeBuilder
IConventionEntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

To samo wystąpienie konstruktora, jeśli konfiguracja została zastosowana, null w przeciwnym razie.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(EntityTypeBuilder, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String, buildAction As Action(Of TableBuilder)) As EntityTypeBuilder

Parametry

entityTypeBuilder
EntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String) As OwnedNavigationBuilder

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, Boolean)

Przestroga

Use the overload with an Action parameter

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string name, bool excludedFromMigrations);
[System.Obsolete("Use the overload with an Action parameter")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string? name, bool excludedFromMigrations);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
[<System.Obsolete("Use the overload with an Action parameter")>]
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As OwnedNavigationBuilder, name As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

excludedFromMigrations
Boolean

Wartość wskazująca, czy tabela powinna być zarządzana przez migracje.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Atrybuty

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, string? name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of TableBuilder)) As OwnedNavigationBuilder

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of OwnedNavigationTableBuilder)) As OwnedNavigationBuilder

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<OwnedNavigationTableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(IConventionEntityTypeBuilder, String, Boolean)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, bool fromDataAnnotation = false);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametry

entityTypeBuilder
IConventionEntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

To samo wystąpienie konstruktora, jeśli konfiguracja została zastosowana, null w przeciwnym razie.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(EntityTypeBuilder, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string schema);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String) As EntityTypeBuilder

Parametry

entityTypeBuilder
EntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(EntityTypeBuilder, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string? name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As EntityTypeBuilder, name As String, buildAction As Action(Of TableBuilder)) As EntityTypeBuilder

Parametry

entityTypeBuilder
EntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string? name);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (ownedNavigationBuilder As OwnedNavigationBuilder, name As String) As OwnedNavigationBuilder

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder referenceOwnershipBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As OwnedNavigationBuilder, buildAction As Action(Of TableBuilder)) As OwnedNavigationBuilder

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(OwnedNavigationBuilder, Action<OwnedNavigationTableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToTable (ownedNavigationBuilder As OwnedNavigationBuilder, buildAction As Action(Of OwnedNavigationTableBuilder)) As OwnedNavigationBuilder

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Konstruktor dla konfigurowanego typu jednostki.

buildAction
Action<OwnedNavigationTableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(EntityTypeBuilder, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string? name);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder

Parametry

entityTypeBuilder
EntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable(EntityTypeBuilder, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToTable (entityTypeBuilder As EntityTypeBuilder, buildAction As Action(Of TableBuilder)) As EntityTypeBuilder

Parametry

entityTypeBuilder
EntityTypeBuilder

Konstruktor dla konfigurowanego typu jednostki.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of TableBuilder)) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<TableBuilder>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity>> buildAction) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity>> buildAction) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of TableBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<TableBuilder<TEntity>>

Akcja wykonująca konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String)

Konfiguruje tabelę, na którą jest mapowanie typu jednostki podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string? name) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla konfigurowanego typu jednostki.

name
String

Nazwa tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity>> buildAction) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string? name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity>> buildAction) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of TableBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<TableBuilder<TEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, Action<TableBuilder<TEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity>> buildAction) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), buildAction As Action(Of TableBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla skonfigurowanego typu jednostki.

buildAction
Action<TableBuilder<TEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToTable<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> buildAction) where TEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of TableBuilder)) As EntityTypeBuilder(Of TEntity)

Parametry typu

TEntity

Konfigurowany typ jednostki.

Parametry

entityTypeBuilder
EntityTypeBuilder<TEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<TableBuilder>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Dotyczy

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema) where TOwnerEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parametry typu

TOwnerEntity

Typ jednostki będącą właścicielem relacji.

TDependentEntity

Zależny typ jednostki relacji.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), buildAction As Action(Of OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parametry typu

TOwnerEntity

Typ jednostki będącą właścicielem relacji.

TDependentEntity

Zależny typ jednostki relacji.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Konstruktor dla skonfigurowanego typu jednostki.

buildAction
Action<OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string? name) where TOwnerEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parametry typu

TOwnerEntity

Typ jednostki będącą właścicielem relacji.

TDependentEntity

Zależny typ jednostki relacji.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parametry typu

TOwnerEntity

Typ jednostki będącą właścicielem relacji.

TDependentEntity

Zależny typ jednostki relacji.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToTable<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Parametry typu

TOwnerEntity

Typ jednostki będącą właścicielem relacji.

TDependentEntity

Zależny typ jednostki relacji.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToTable<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, string? name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TRelatedEntity>> buildAction) where TOwnerEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), name As String, buildAction As Action(Of TableBuilder(Of TRelatedEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Parametry typu

TOwnerEntity
TRelatedEntity

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

buildAction
Action<TableBuilder<TRelatedEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Boolean)

Przestroga

Use the overload with an Action parameter

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name, string schema, bool excludedFromMigrations) where TEntity : class where TRelatedEntity : class;
[System.Obsolete("Use the overload with an Action parameter")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToTable<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, string? name, string? schema, bool excludedFromMigrations) where TOwnerEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
[<System.Obsolete("Use the overload with an Action parameter")>]
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TEntity, TRelatedEntity), name As String, schema As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), name As String, schema As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Parametry typu

TEntity TOwnerEntity
TRelatedEntity

Typ jednostki, dla którego jest przeznaczona ta relacja.

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

excludedFromMigrations
Boolean

Wartość wskazująca, czy tabela powinna być zarządzana przez migracje.

Zwraca

OwnedNavigationBuilder<TEntity,TRelatedEntity>
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Atrybuty

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Boolean)

Przestroga

Use the overload with an Action parameter

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name, bool excludedFromMigrations) where TEntity : class where TRelatedEntity : class;
[System.Obsolete("Use the overload with an Action parameter")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToTable<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, string? name, bool excludedFromMigrations) where TOwnerEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
[<System.Obsolete("Use the overload with an Action parameter")>]
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TEntity, TRelatedEntity), name As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), name As String, excludedFromMigrations As Boolean) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Parametry typu

TEntity TOwnerEntity
TRelatedEntity

Typ jednostki, dla którego jest przeznaczona ta relacja.

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

excludedFromMigrations
Boolean

Wartość wskazująca, czy tabela powinna być zarządzana przez migracje.

Zwraca

OwnedNavigationBuilder<TEntity,TRelatedEntity>
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Atrybuty

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToTable<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TRelatedEntity>> buildAction) where TOwnerEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), buildAction As Action(Of TableBuilder(Of TRelatedEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Parametry typu

TOwnerEntity
TRelatedEntity

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

Konstruktor dla skonfigurowanego typu jednostki.

buildAction
Action<TableBuilder<TRelatedEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Action<TableBuilder<TRelatedEntity>>)

Konfiguruje tabelę, do których typ jednostki jest mapowy podczas określania wartości docelowej relacyjnej bazy danych.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToTable<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TRelatedEntity>> buildAction) where TOwnerEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), name As String, schema As String, buildAction As Action(Of TableBuilder(Of TRelatedEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Parametry typu

TOwnerEntity
TRelatedEntity

Parametry

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

Konstruktor dla skonfigurowanego typu jednostki.

name
String

Nazwa tabeli.

schema
String

Schemat tabeli.

buildAction
Action<TableBuilder<TRelatedEntity>>

Akcja, która wykonuje konfigurację tabeli.

Zwraca

OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

To samo wystąpienie konstruktora, aby można było połączyć łańcuch wielu wywołań.

Uwagi

Aby uzyskać więcej informacji, zobacz Modelowanie typów jednostek i relacji .

Dotyczy