SqlAliasManager.GenerateTableAlias Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GenerateTableAlias(ITableBase) |
Generates an alias based on the given |
GenerateTableAlias(String) |
Generates an alias based on the given |
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
Entity Framework