Class CosmosLinqSerializer
This abstract class can be implemented to allow a custom serializer (Non Json.NET serializer's) to be used by the CosmosClient for LINQ queries.
public abstract class CosmosLinqSerializer : CosmosSerializer
- Inheritance
-
CosmosLinqSerializer
- Inherited Members
- Extension Methods
Remarks
Refer to the sample project for a full implementation.
Constructors
CosmosLinqSerializer()
protected CosmosLinqSerializer()
Methods
SerializeMemberName(MemberInfo)
Convert a MemberInfo to a string for use in LINQ query translation. This must be implemented when using a custom serializer for LINQ queries.
public abstract string SerializeMemberName(MemberInfo memberInfo)
Parameters
memberInfo
MemberInfoAny MemberInfo used in the query.
Returns
- string
A serialized representation of the member.