示例#1
0
 private static void VerifyDbExpression(SqlVersion sqlVersion, DbExpression expr, string expectedSql, out ExpressionGenerator generator)
 {
     generator = new ExpressionGenerator()
     {
         SqlVersion        = sqlVersion,
         SqlBuilder        = new IndentedStringBuilder(),
         ModelAliasManager = new ModelAliasManagerMock()
     };
     expr.Accept(generator);
     Assert.AreEqual(expectedSql, generator.SqlBuilder.ToString());
 }