示例#1
0
        public void CheckDeleteById()
        {
            int ret = InsertTeams("checkdeleteTest");

            Assert.IsNotNull(dao.FindById(ret));
            dao.DeleteById(ret);
            Assert.IsNull(dao.FindById(ret));
        }
示例#2
0
        public bool DeleteById(int id)
        {
            ITeamDao TeamDao = DalFactory.CreateTeamDao(database);

            return(TeamDao.DeleteById(id));
        }