删除
var d Dbtest
d.Id = 10
dao := NewDbtestDao()
affect, err := dao.Delete(&d)
//先查后删
dao := NewDbtestDao(session)
param := dbdao.CastToParamIn([]int{10})
lists, err := dao.Get(param)
if err != nil {
return err
}
if len(lists) > 0 {
row := lists[0]
affect, err := dao.Delete(&row)
}