Class BaseModel
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
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
RequestClientOptions
[JsonIgnore]
public ClientOptions? RequestClientOptions { get; set; }
Property Value
TableName
[JsonIgnore]
public string TableName { get; }
Property Value
Methods
Delete<T>(CancellationToken)
public virtual Task Delete<T>(CancellationToken cancellationToken = default) where T : BaseModel, new()
Parameters
cancellationToken
CancellationToken
Returns
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