Jens,
But the values have to read the properties one by one?
It does not have a way to return the entire document as a JSON?



             var query = db.CreateAllDocumentsQuery ();
             query.AllDocsMode = AllDocsMode.AllDocs;
             var rows = query.Run ();
             List<Cadastro> Geral = new List<Cadastro> (rows.Count);
             foreach (var row in rows) {
                 var doc = row.Document;
                 Geral.Add( new Cadastro() {
                     Nome = doc.GetProperty<string> ("nome"),
                     Razao = doc.GetProperty<string> ("razao"),
                     Cidade = doc.GetProperty<string> ("cidade"),
                     Bairro = doc.GetProperty<string> ("bairro"),
                     Logradouro = doc.GetProperty<string> ("logradouro")
                 });
             }

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/0fbbfa67-53da-441b-a0cb-69cab3493a1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to