Load<TCustomizeType> data with type that is different the Entity type stored in db.

21 views
Skip to first unread message

Tim Zhang

unread,
Aug 31, 2015, 4:35:06 AM8/31/15
to RavenDB - 2nd generation document database
1.I my raven db I have a document which type is Client.
2.Then I create a new type call ClientDto 
3.I want load ClientDto from Db :some thing like this:  Session.Load<ClientDto>(id).

How can I do thing like this ?

Oren Eini (Ayende Rahien)

unread,
Aug 31, 2015, 7:32:00 AM8/31/15
to ravendb
Use a transfomer to do so.

Hibernating Rhinos Ltd  

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

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

 


--
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