Why does Ravendb UI converts first letter capital for collection name

41 views
Skip to first unread message

rajdeep paliwal

unread,
Jun 11, 2012, 8:31:00 AM6/11/12
to ravendb, rajdeepp...@gmail.com
sorry for my lack of understanding .. as I have created a new document
using the UI of RavenDB (silverlight tool) I put name of the document
as "abc/123" and it saves it into a collection named "Abc" ..why this
conversion is being performed..please tell me .. thanks in advance.

Fitzchak Yitzchaki

unread,
Jun 11, 2012, 8:39:46 AM6/11/12
to rav...@googlegroups.com, rajdeepp...@gmail.com
Cannot reproduce, using build #2015.
What build # are you using?

Oren Eini (Ayende Rahien)

unread,
Jun 11, 2012, 8:39:41 AM6/11/12
to rav...@googlegroups.com, rajdeepp...@gmail.com
Collection name is pretty important, it is used a lot in RavenDB.

By conventions, we use the first part of the key as the entity name, if you didn't specify one, and to make it nice, we capitalize the first letter.
Consider something like "users/1" which will be converted to Users
If you don't want that, you need to explicitly set the "Raven-Entity-Name" in the metadata to the desired value.

On Mon, Jun 11, 2012 at 3:31 PM, rajdeep paliwal <rajdeepp...@gmail.com> wrote:

rajdeep paliwal

unread,
Jun 12, 2012, 1:18:58 AM6/12/12
to ravendb
Your answer makes my way very clear. Thanks a lot

rajdeep paliwal

unread,
Jun 12, 2012, 3:11:34 AM6/12/12
to ravendb
I need to list all of the document contained within a database either
having entity name or not .

How can I get those Documents ?

please help.

On Jun 12, 10:18 am, rajdeep paliwal <rajdeeppaliwa...@gmail.com>
wrote:

Oren Eini (Ayende Rahien)

unread,
Jun 12, 2012, 3:13:03 AM6/12/12
to rav...@googlegroups.com

Oren Eini (Ayende Rahien)

unread,
Jun 12, 2012, 3:13:13 AM6/12/12
to rav...@googlegroups.com
And in the UI, you have the Documents tab

rajdeep paliwal

unread,
Jun 12, 2012, 4:18:51 AM6/12/12
to ravendb
Thank you sir .I need to implement it in code part .Is there any
function in the API to get all Documents ?

On Jun 12, 12:13 pm, "Oren Eini (Ayende Rahien)" <aye...@ayende.com>

Oren Eini (Ayende Rahien)

unread,
Jun 12, 2012, 4:24:13 AM6/12/12
to rav...@googlegroups.com
Sure,

DocumentStore.AsyncDatabaseCommands.GetDocumentsAsync()

rajdeep paliwal

unread,
Jun 12, 2012, 4:41:37 AM6/12/12
to ravendb
thank you so much sir. It is working.

On Jun 12, 1:24 pm, "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
wrote:
Reply all
Reply to author
Forward
0 new messages