I want to store a list of Guids as a list of Strings in MongoDB. For a single Guid I use the following attribute:
[BsonRepresentation(BsonType.String)]
public Guid GuidId{ get; set; }
Is there an attribute to do the same with:
public List<Guid> GuidIdList { get; set; }
I found how you can do it with conventions but I really like to do it with an attribute:
How can I tell the MongoDB C# driver to store all Guids in string format?