Esempio n. 1
0
        public void TestMethod_ExecuteBySql_T()
        {
            string sql = "UPDATE [dbo].[B_Users] SET NAME = '大师兄' WHERE PK = @PK";
            BaseBLL <UserTestEntity> bll = new BaseBLL <UserTestEntity>();

            int count = bll.ExecuteBySql(sql, new { PK = 1 });

            Assert.IsTrue(count > 0);
            Console.WriteLine("执行结果:{0}", count);
        }