Remotion.Linq.SqlBackend.SqlGeneration.SqlTableAndJoinTextGenerator.VisitSimpleTableInfo C# (CSharp) Méthode

VisitSimpleTableInfo() public méthode

public VisitSimpleTableInfo ( ResolvedSimpleTableInfo tableInfo ) : ITableInfo
tableInfo Remotion.Linq.SqlBackend.SqlStatementModel.Resolved.ResolvedSimpleTableInfo
Résultat ITableInfo
    public ITableInfo VisitSimpleTableInfo (ResolvedSimpleTableInfo tableInfo)
    {
      ArgumentUtility.CheckNotNull ("tableInfo", tableInfo);

      string[] identifiers = tableInfo.TableName.Split ('.');
      var newTableName = string.Join(".", identifiers.Select (idf => "[" + idf + "]").ToArray());
      
      _commandBuilder.Append (newTableName);
      _commandBuilder.Append (" AS ");
      _commandBuilder.AppendIdentifier (tableInfo.TableAlias);

      return tableInfo;
    }