コード例 #1
0
 public void MysqlDelete()
 {
     MyDapperPower.DbConnection("server=localhost;port=3306;user id=root;password=Aa82078542;database=testmysql;SslMode=none", "mysql", "mysql");
     UserLocalDAL userLocalDAL = new UserLocalDAL();
     var          result       = userLocalDAL.Delete(new UserLocal {
         ID = 13
     });
 }
コード例 #2
0
        public void MysqlDeleteList()
        {
            MyDapperPower.DbConnection("server=localhost;port=3306;user id=root;password=Aa82078542;database=testmysql;SslMode=none", "mysql", "mysql");
            UserLocalDAL      userLocalDAL  = new UserLocalDAL();
            IList <UserLocal> userLocalList = new List <UserLocal>();

            for (int i = 8; i < 20; i++)
            {
                userLocalList.Add(new UserLocal {
                    ID = i
                });
            }
            var result = userLocalDAL.Delete(userLocalList);
        }