public void InsertArtigoArmazem(ArtigoArmazem entity)
        {
            if (entity.id is Guid)
            {
                entity.id = Guid.NewGuid();
            }

            _set.AddOrUpdate(entity);
            Commit();
        }
 public void DeleteArtigoArmazem(ArtigoArmazem entity)
 {
     _set.Remove(GetByIdArtigoArmazem(entity.id)); Commit();
 }
 public void UpdateArtigoArmazem(ArtigoArmazem entity)
 {
     _set.AddOrUpdate(entity);
     Commit();
 }