다음을 통해 공유


CosmosModelExtensions.SetDefaultContainer 메서드

정의

오버로드

SetDefaultContainer(IMutableModel, String)

기본 컨테이너 이름을 설정합니다.

SetDefaultContainer(IConventionModel, String, Boolean)

기본 컨테이너 이름을 설정합니다.

SetDefaultContainer(IMutableModel, String)

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

기본 컨테이너 이름을 설정합니다.

public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? name);
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetDefaultContainer (model As IMutableModel, name As String)

매개 변수

model
IMutableModel

모델입니다.

name
String

설정할 이름입니다.

적용 대상

SetDefaultContainer(IConventionModel, String, Boolean)

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

기본 컨테이너 이름을 설정합니다.

public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string? SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? name, bool fromDataAnnotation = false);
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetDefaultContainer (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDefaultContainer (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false) As String

매개 변수

model
IConventionModel

모델입니다.

name
String

설정할 이름입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

구성된 값입니다.

적용 대상