Esempio n. 1
0
 public override string Render(BooleanLiteralValue booleanLiteralValue)
 {
     if (ReplaceLiteralsWithParameters)
     {
         return(AddParameter(booleanLiteralValue.Literal, DbType.Boolean).Render(this));
     }
     else
     {
         return(string.Format("{0}", Convert.ToInt32(booleanLiteralValue.Literal)));
     }
 }
Esempio n. 2
0
        public void RenderBooleanLiteralValue()
        {
            BooleanLiteralValue booleanLiteralValue = new BooleanLiteralValue(true);

            Assert.AreEqual("1", sqlClientRenderer.Render(booleanLiteralValue));
        }
Esempio n. 3
0
        public void CreateBooleanLiteralValue()
        {
            BooleanLiteralValue booleanLiteralValue = new BooleanLiteralValue(true);

            Assert.AreEqual(true, booleanLiteralValue.Literal);
        }
Esempio n. 4
0
 public abstract string Render(BooleanLiteralValue booleanLiteralValue);