다음을 통해 공유


SqlAliasManager.GenerateTableAlias Method

Definition

Overloads

GenerateTableAlias(ITableBase)

Generates an alias based on the given modelTable. All aliases produced by a given instance of SqlAliasManager are unique.

GenerateTableAlias(String)

Generates an alias based on the given name. All aliases produced by a given instance of SqlAliasManager are unique.

GenerateTableAlias(ITableBase)

Source:
SqlAliasManager.cs

Generates an alias based on the given modelTable. All aliases produced by a given instance of SqlAliasManager are unique.

public virtual string GenerateTableAlias (Microsoft.EntityFrameworkCore.Metadata.ITableBase modelTable);
abstract member GenerateTableAlias : Microsoft.EntityFrameworkCore.Metadata.ITableBase -> string
override this.GenerateTableAlias : Microsoft.EntityFrameworkCore.Metadata.ITableBase -> string
Public Overridable Function GenerateTableAlias (modelTable As ITableBase) As String

Parameters

modelTable
ITableBase

A table from the relational model for which to generate the alias.

Returns

A fully unique alias within the context of this translation process.

Applies to

GenerateTableAlias(String)

Source:
SqlAliasManager.cs

Generates an alias based on the given name. All aliases produced by a given instance of SqlAliasManager are unique.

public virtual string GenerateTableAlias (string name);
abstract member GenerateTableAlias : string -> string
override this.GenerateTableAlias : string -> string
Public Overridable Function GenerateTableAlias (name As String) As String

Parameters

name
String

A name (e.g. of a table) to use as the starting point for the alias; a number postfix will be appended to it as necessary.

Returns

A fully unique alias within the context of this translation process.

Applies to