public override void Create(Entity entity) { var categoria = (Categoria)entity; var sqlOperation = mapper.GetCreateStatement(categoria); dao.ExecuteProcedure(sqlOperation); }
public override bool Create(BaseEntity entity) { var operation = _mapper.GetCreateStatement(entity); var instance = SqlDao.GetInstance(); instance.ExecuteProcedure(operation); return(true); }