示例#1
0
        public void Equals_MissingAtSymb()
        {
            EqualityExpression <string> expression = null;
            Dictionary <string, object> parameters = null;
            string whereParam = null;

            expression = Expression.Equals("a");
            parameters = expression.GetDynamicParameters("p1");
            whereParam = expression.ToSqlExpression("[Table].[Field]", "p1");
            Console.WriteLine(String.Join(",", parameters.Keys));

            Assert.AreEqual(parameters["p1"], "a");
            Assert.AreEqual(whereParam, " and [Table].[Field] = @p1");
        }