예제 #1
0
        public override void Delete(BaseEntity entity)
        {
            var categoria    = (Categoria)entity;
            var sqlOperation = mapper.GetDeleteStatement(categoria);

            dao.ExecuteProcedure(sqlOperation);
        }
예제 #2
0
        public override bool Delete(BaseEntity entity)
        {
            var operation = _mapper.GetDeleteStatement(entity);
            var instance  = SqlDao.GetInstance();

            instance.ExecuteProcedure(operation);

            return(true);
        }
        public override void Delete(Entity entity)
        {
            var categoria = (Categoria)entity;

            dao.ExecuteProcedure(mapper.GetDeleteStatement(categoria));
        }