Example #1
0
        public void LinqToEntitiesFunctions_SqlFunctions()
        {
            var query = from c in context.Customers
                        where VfpFunctions.Atc("Simon", c.ContactName) == 1
                        select c;

            ObjectDumper.Write(query);
        }
        public void VfpFunctionsTests_ATC_Test()
        {
            var result = this.GetOrderQuery().Select(x => VfpFunctions.Atc("I", x.ShipName)).First();

            Assert.AreEqual(2, result);
            result = this.GetOrderQuery().Select(x => VfpFunctions.Atc("i", x.ShipName)).First();
            Assert.AreEqual(2, result);
        }
Example #3
0
        public void LinqToEntitiesFunctions_SqlFunctions()
        {
            var query = from c in context.Customers
                        where VfpFunctions.Atc("Simon", c.ContactName) == 1
                        select c;

            var list = query.ToList();
        }
Example #4
0
        public void VfpFunctionsTests_ATC_Test() => Execute(context => {
            var result = GetOrderQuery(context).Select(x => VfpFunctions.Atc("I", x.ShipName)).First();

            Assert.Equal(2, result);

            result = GetOrderQuery(context).Select(x => VfpFunctions.Atc("i", x.ShipName)).First();

            Assert.Equal(2, result);
        });