Class PostgrestContractResolver
A custom resolver that handles mapping column names and property names as well
as handling the conversion of Postgrest Ranges to a C# Range
.
public class PostgrestContractResolver : DefaultContractResolver, IContractResolver
- Inheritance
-
DefaultContractResolverPostgrestContractResolver
- Implements
-
IContractResolver
- Inherited Members
-
DefaultContractResolver.DynamicCodeGenerationDefaultContractResolver.DefaultMembersSearchFlagsDefaultContractResolver.SerializeCompilerGeneratedMembersDefaultContractResolver.IgnoreSerializableInterfaceDefaultContractResolver.IgnoreSerializableAttributeDefaultContractResolver.IgnoreIsSpecifiedMembersDefaultContractResolver.IgnoreShouldSerializeMembersDefaultContractResolver.NamingStrategy
- Extension Methods
Methods
CreateProperty(MemberInfo, MemberSerialization)
Creates a Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo.
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
Parameters
member
MemberInfoThe member to create a Newtonsoft.Json.Serialization.JsonProperty for.
memberSerialization
MemberSerializationThe member's parent Newtonsoft.Json.MemberSerialization.
Returns
- JsonProperty
A created Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo.
SetState(bool, bool, bool)
Sets the state of the contract resolver to either insert, update, or upsert.
public void SetState(bool isInsert = false, bool isUpdate = false, bool isUpsert = false)