how can i list the bunch of documents in dynamic database?

8 views
Skip to first unread message

Charles Ragav

unread,
Sep 30, 2014, 2:31:56 PM9/30/14
to rav...@googlegroups.com
how can i list the bunch of documents in dynamic database? how can get the value in document programatically? tenantDbName - Get the Database name and that database name contain list of documents Like that every tenantdocument contain bunch of documents. using (var session = MvcApplication.RavenDocumentStore.OpenSession(tenantDbName)) { var listdocumetofcomingdatabse= session.Advanced.LuceneQuery<dynamic>() .SelectFields<dynamic>("@metadata") .Select<dynamic, string>(x => x["__document_id"]).ToArray(); var loadedDocuments = session.Load<dynamic>(listdocumetofcomingdatabse); foreach (var document in loadedDocuments) { } Thi is the Correct way?

Oren Eini (Ayende Rahien)

unread,
Sep 30, 2014, 10:13:05 PM9/30/14
to ravendb
Answered in other mail

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Tue, Sep 30, 2014 at 2:31 PM, Charles Ragav <charles...@gmail.com> wrote:
how can i list the bunch of documents in dynamic database? how can get the value in document programatically? tenantDbName - Get the Database name and that database name contain list of documents Like that every tenantdocument contain bunch of documents. using (var session = MvcApplication.RavenDocumentStore.OpenSession(tenantDbName)) { var listdocumetofcomingdatabse= session.Advanced.LuceneQuery<dynamic>() .SelectFields<dynamic>("@metadata") .Select<dynamic, string>(x => x["__document_id"]).ToArray(); var loadedDocuments = session.Load<dynamic>(listdocumetofcomingdatabse); foreach (var document in loadedDocuments) { } Thi is the Correct way?

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages