public void GetTableExpressionWithQuota() { TableInfo tableInfo = new DatabaseMapper(new ConventionModelMapper()).GetTableInfo <Person>(); tableInfo.UseIdentifierDelimiters(Delimiters.SquareBrackets); var selectExpression = new SelectExpression(tableInfo); selectExpression.TableExpression.TablePart.Should().Be("[TPerson]"); }
public void GetColumnsExpressionWithQuotas() { TableInfo tableInfo = new DatabaseMapper(new ConventionModelMapper()).GetTableInfo <Person>(); tableInfo.UseIdentifierDelimiters(Delimiters.SquareBrackets); var selectExpression = new SelectExpression(tableInfo); selectExpression.ColumnsExpression.ColumnsPart.Should().Be("[Id], [Name], [LastName]"); }