Table of Contents

Class PostgrestContractResolver

Namespace
Supabase.Postgrest
Assembly
Supabase.Postgrest.dll

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
DefaultContractResolver
PostgrestContractResolver
Implements
IContractResolver
Inherited Members
DefaultContractResolver.DynamicCodeGeneration
DefaultContractResolver.DefaultMembersSearchFlags
DefaultContractResolver.SerializeCompilerGeneratedMembers
DefaultContractResolver.IgnoreSerializableInterface
DefaultContractResolver.IgnoreSerializableAttribute
DefaultContractResolver.IgnoreIsSpecifiedMembers
DefaultContractResolver.IgnoreShouldSerializeMembers
DefaultContractResolver.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 MemberInfo

The member to create a Newtonsoft.Json.Serialization.JsonProperty for.

memberSerialization MemberSerialization

The 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)

Parameters

isInsert bool
isUpdate bool
isUpsert bool