Пример #1
0
        public async Task IsExist_Shortcut()
        {
            xx = string.Empty;

            var date = DateTime.Parse("2018-08-20 20:33:21.584925");
            var id   = Guid.Parse("89c9407f-7427-4570-92b7-0165590ac07e");

            // 判断 AlipayPaymentRecord 表中是否存在符合条件的数据
            bool res1 = await MyDAL_TestDB.IsExistAsync <AlipayPaymentRecord>(it => it.CreatedOn == date && it.OrderId == id);

            Assert.True(res1);



            /********************************************************************************************************************************************/

            xx = string.Empty;
        }