Table of Contents

Class BaseModel

Namespace
Supabase.Postgrest.Models
Assembly
Supabase.Postgrest.dll

Abstract class that must be implemented by C# Postgrest Models.

public abstract class BaseModel
Inheritance
BaseModel
Derived
Inherited Members

Properties

BaseUrl

[JsonIgnore]
public string? BaseUrl { get; set; }

Property Value

string

PrimaryKey

Gets the values of the PrimaryKey columns (there can be multiple) on a model's instance as defined by the [PrimaryKey] attributes on a property on the model.

[JsonIgnore]
public Dictionary<PrimaryKeyAttribute, object> PrimaryKey { get; }

Property Value

Dictionary<PrimaryKeyAttribute, object>

RequestClientOptions

[JsonIgnore]
public ClientOptions? RequestClientOptions { get; set; }

Property Value

ClientOptions

TableName

[JsonIgnore]
public string TableName { get; }

Property Value

string

Methods

Delete<T>(CancellationToken)

public virtual Task Delete<T>(CancellationToken cancellationToken = default) where T : BaseModel, new()

Parameters

cancellationToken CancellationToken

Returns

Task

Type Parameters

T

Update<T>(CancellationToken)

public Task<ModeledResponse<T>> Update<T>(CancellationToken cancellationToken = default) where T : BaseModel, new()

Parameters

cancellationToken CancellationToken

Returns

Task<ModeledResponse<T>>

Type Parameters

T