RelationalEntityTypeBuilderExtensions.ToView Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
ToView(EntityTypeBuilder, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(OwnedNavigationBuilder, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(EntityTypeBuilder, String, Action<ViewBuilder>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(EntityTypeBuilder, String, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(IConventionEntityTypeBuilder, String, Boolean) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(OwnedNavigationBuilder, String, Action<OwnedNavigationViewBuilder>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(OwnedNavigationBuilder, String, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(EntityTypeBuilder, String, String, Action<ViewBuilder>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(IConventionEntityTypeBuilder, String, String, Boolean) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(OwnedNavigationBuilder, String, String, Action<OwnedNavigationViewBuilder>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TEntity>(EntityTypeBuilder<TEntity>, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, Action<ViewBuilder<TEntity>>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<ViewBuilder<TEntity>>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationViewBuilder<TOwnerEntity, TDependentEntity>>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationViewBuilder<TOwnerEntity, TDependentEntity>>) |
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi. |
ToView(EntityTypeBuilder, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string? name);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder
Parametry
- entityTypeBuilder
- EntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(OwnedNavigationBuilder, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string? name);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String) As OwnedNavigationBuilder
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(EntityTypeBuilder, String, Action<ViewBuilder>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder> buildAction);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As EntityTypeBuilder, name As String, buildAction As Action(Of ViewBuilder)) As EntityTypeBuilder
Parametry
- entityTypeBuilder
- EntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- buildAction
- Action<ViewBuilder>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(EntityTypeBuilder, String, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string schema);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string? name, string? schema);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String) As EntityTypeBuilder
Parametry
- entityTypeBuilder
- EntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(IConventionEntityTypeBuilder, String, Boolean)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, bool fromDataAnnotation = false);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parametry
- entityTypeBuilder
- IConventionEntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- fromDataAnnotation
- Boolean
Určuje, zda byla konfigurace zadána pomocí datové poznámky.
Návraty
Stejná instance tvůrce, pokud byla použita konfigurace, null
jinak.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(OwnedNavigationBuilder, String, Action<OwnedNavigationViewBuilder>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder> buildAction);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of OwnedNavigationViewBuilder)) As OwnedNavigationBuilder
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- buildAction
- Action<OwnedNavigationViewBuilder>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(OwnedNavigationBuilder, String, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string? name, string? schema);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String) As OwnedNavigationBuilder
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(EntityTypeBuilder, String, String, Action<ViewBuilder>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder> buildAction);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String, buildAction As Action(Of ViewBuilder)) As EntityTypeBuilder
Parametry
- entityTypeBuilder
- EntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
- buildAction
- Action<ViewBuilder>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(IConventionEntityTypeBuilder, String, String, Boolean)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, string schema, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, string? schema, bool fromDataAnnotation = false);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToView (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, schema As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parametry
- entityTypeBuilder
- IConventionEntityTypeBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
- fromDataAnnotation
- Boolean
Určuje, zda byla konfigurace zadána pomocí datové poznámky.
Návraty
Stejná instance tvůrce, pokud byla použita konfigurace, null
jinak.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView(OwnedNavigationBuilder, String, String, Action<OwnedNavigationViewBuilder>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder> buildAction);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of OwnedNavigationViewBuilder)) As OwnedNavigationBuilder
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
- buildAction
- Action<OwnedNavigationViewBuilder>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TEntity>(EntityTypeBuilder<TEntity>, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string? name) where TEntity : class;
static member ToView : 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 ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)
Parametry typu
- TEntity
Konfigurovaný typ entity.
Parametry
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, Action<ViewBuilder<TEntity>>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder<TEntity>> buildAction) where TEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of ViewBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)
Parametry typu
- TEntity
Konfigurovaný typ entity.
Parametry
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- buildAction
- Action<ViewBuilder<TEntity>>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string? name, string? schema) where TEntity : class;
static member ToView : 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 ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)
Parametry typu
- TEntity
Konfigurovaný typ entity.
Parametry
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<ViewBuilder<TEntity>>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder<TEntity>> buildAction) where TEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ViewBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of ViewBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)
Parametry typu
- TEntity
Konfigurovaný typ entity.
Parametry
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
- buildAction
- Action<ViewBuilder<TEntity>>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationViewBuilder<TOwnerEntity, TDependentEntity>>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToView(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationViewBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Parametry typu
- TOwnerEntity
Typ entity, která vlastní relaci.
- TDependentEntity
Závislý typ entity relace.
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
- buildAction
- Action<OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string? name, string? schema) where TOwnerEntity : class where TDependentEntity : class;
static member ToView : 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 ToView(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 entity, která vlastní relaci.
- TDependentEntity
Závislý typ entity relace.
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- schema
- String
Schéma zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string? name) where TOwnerEntity : class where TDependentEntity : class;
static member ToView : 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 ToView(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 entity, která vlastní relaci.
- TDependentEntity
Závislý typ entity relace.
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
ToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationViewBuilder<TOwnerEntity, TDependentEntity>>)
Nakonfiguruje zobrazení, na které se typ entity mapuje při cílení na relační databázi.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationViewBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToView(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationViewBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Parametry typu
- TOwnerEntity
Typ entity, která vlastní relaci.
- TDependentEntity
Závislý typ entity relace.
Parametry
- ownedNavigationBuilder
- OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>
Tvůrce pro konfigurovaný typ entity.
- name
- String
Název zobrazení
- buildAction
- Action<OwnedNavigationViewBuilder<TOwnerEntity,TDependentEntity>>
Akce, která provádí konfiguraci zobrazení.
Návraty
Stejná instance tvůrce, aby bylo možné zřetězených více volání.
Poznámky
Další informace a příklady najdete v tématu Modelování typů entit a relací .
Platí pro
Entity Framework
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro