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
Post a Comment