c# - Using poco objects with mongodb -


how store poco c# objects using mongodb .net driver? custom attributes , objectid methods intrusive , require changes domain classes introducing coupling mongodb. there documented methods use poco classes mongodb? integration springframework.net.

the documentation (http://mongodb.github.io/mongo-csharp-driver/2.0/reference/bson/mapping/) has many examples. can attributes can done via code well.

regarding objectid, i'd suggest using string , indicating(via code) should stored objectid in database. alternatively, use guid.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -