Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problems with serialization after update of C# driver
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Catsy  
View profile  
 More options Jun 6 2012, 2:55 pm
From: Catsy <kate.kl...@gmail.com>
Date: Wed, 6 Jun 2012 11:55:59 -0700 (PDT)
Local: Wed, Jun 6 2012 2:55 pm
Subject: Problems with serialization after update of C# driver
Hello everyone,

I've updated the project with the new version of MongoDB C# driver
(1.4.2 against 1.2) and after the compilation I have huge amount or
errors. All of them are about updating the existing code - they
require my classes that implement IBsonSerializer to implement some
new methods like GetItemSerializationInfo,
GetDefaultSerializationOptions and GetMemberSerializationInfo. I
couldn't find any information about these methods including the
official MongoDB drivers site (it has only out-of-date info). Could
someone please explain me how to implement these methods or point to
the resource with the description?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Stam  
View profile  
 More options Jun 6 2012, 3:02 pm
From: Robert Stam <rob...@10gen.com>
Date: Wed, 6 Jun 2012 15:02:06 -0400
Local: Wed, Jun 6 2012 3:02 pm
Subject: Re: [mongodb-csharp] Problems with serialization after update of C# driver

The new methods are there to support LINQ queries. They are mentioned in
the 1.4 release notes:

https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20...

If you want to write LINQ queries against values serialized by your custom
serializers you should implement the new methods. Otherwise you can add
stubbed implementations that throw  NotImplementedException or
NotSupportedExceptions.

Consider deriving your custom serializers from BsonBaseSerializer, which
provides default implementations of the new methods.

These interfaces are changing yet again in 1.5 (sorry).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Catsy  
View profile  
 More options Jun 7 2012, 6:50 pm
From: Catsy <kate.kl...@gmail.com>
Date: Thu, 7 Jun 2012 15:50:47 -0700 (PDT)
Local: Thurs, Jun 7 2012 6:50 pm
Subject: Re: Problems with serialization after update of C# driver
Thanks!

On Jun 6, 12:02 pm, Robert Stam <rob...@10gen.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »