예제 #1
0
        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]");
        }
예제 #2
0
        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]");
        }