Class ModeledResponse<T>
A representation of a successful Postgrest response that transforms the string response into a C# Modelled response.
public class ModeledResponse<T> : BaseResponse where T : BaseModel, new()Type Parameters
- T
- Inheritance
- 
      
      
      ModeledResponse<T>
- Inherited Members
Constructors
ModeledResponse(BaseResponse, JsonSerializerSettings, Func<Dictionary<string, string>>?, bool)
public ModeledResponse(BaseResponse baseResponse, JsonSerializerSettings serializerSettings, Func<Dictionary<string, string>>? getHeaders = null, bool shouldParse = true)Parameters
- baseResponseBaseResponse
- serializerSettingsJsonSerializerSettings
- getHeadersFunc<Dictionary<string, string>>
- shouldParsebool
Fields
Count
The number of results matching the specified filters
public int CountField Value
Properties
Model
The first model in the response.
public T? Model { get; }Property Value
- T
Models
A list of models in the response.
public List<T> Models { get; }Property Value
- List<T>