Re: [mongodb-user] Serializing a String Property as an Array in Mongo

4 views
Skip to first unread message

Asya Kamsky

unread,
Aug 11, 2014, 11:42:27 AM8/11/14
to mongodb-user
I think this SO question has an answer that will probably help you:


Asya



On Thu, Aug 7, 2014 at 12:21 PM, AG <agarc...@gmail.com> wrote:
I have a POCO

class Person
   public String FirstName {get;set;}
   public String LastName {get;set;}
   public String Tags {get;set;}
}

In the UI the user will type the Tags field as a csv of values   "tag1,tag2,tag 3,long tag 4,tag4".

I want to the C# driver to serialize this.  What is the best way to do this.

I was trying to implement an IBsonSerializer  but that seems an overkill.

Can anyone please advise?

Thanks,

A.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/ec20528b-4bf6-48f3-b591-c48c4fec3bfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages