Esempio n. 1
0
        public void TestOverrideBind()
        {
            TranslateUtils.AddMethodBinder <ConvertBinder>(m => m.DeclaringType == typeof(Convert) && m.Name == "ToInt32");

            using (var context = new DbContext())
            {
                var list = context.OrderDetails.Where(s => Convert.ToInt32(s.Discount) == 1).ToList();
            }
        }