Skip to main content

LookupValues

Manage Lookup Data

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class LookupValues

Methods

GetOrFetchValueAsync(JsonApiClient, AppMetadata, String, String, String, Boolean)

View Source
Declaration
public static async Task<string> GetOrFetchValueAsync(JsonApiClient client, AppMetadata appMetadata, string model, string id, string label, bool isComputed)
Returns

Task<System.String>

Parameters
TypeName
ServiceStack.JsonApiClientclient
ServiceStack.AppMetadataappMetadata
System.Stringmodel
System.Stringid
System.Stringlabel
System.BooleanisComputed

GetValue(String, String, String)

View Source
Declaration
public static string GetValue(string model, string id, string label)
Returns

System.String

Parameters
TypeName
System.Stringmodel
System.Stringid
System.Stringlabel

SetValue(String, String, String, String)

View Source
Declaration
public static void SetValue(string model, string id, string label, string value)
Parameters
TypeName
System.Stringmodel
System.Stringid
System.Stringlabel
System.Stringvalue

SetValue(RefInfo, Dictionary<String, Object>)

View Source
Declaration
public static string SetValue(RefInfo refInfo, Dictionary<string, object> refModel)
Returns

System.String

Parameters
TypeName
ServiceStack.RefInforefInfo
Dictionary<System.String,System.Object>refModel

FetchAsync(JsonApiClient, AppMetadata, List<Dictionary<String, Object>>, IEnumerable<MetadataPropertyType>)

View Source
Declaration
public static async Task FetchAsync(JsonApiClient client, AppMetadata appMetadata, List<Dictionary<string, object>> results, IEnumerable<MetadataPropertyType> props)
Returns

Task

Parameters
TypeName
ServiceStack.JsonApiClientclient
ServiceStack.AppMetadataappMetadata
List<Dictionary<System.String,System.Object>>results
IEnumerable<ServiceStack.MetadataPropertyType>props

FetchAsync(JsonApiClient, AppMetadata, String, String, String, Boolean, List<String>)

View Source
Declaration
public static async Task FetchAsync(JsonApiClient client, AppMetadata appMetadata, string refModel, string refId, string refLabel, bool isComputed, List<string> lookupIds)
Returns

Task

Parameters
TypeName
ServiceStack.JsonApiClientclient
ServiceStack.AppMetadataappMetadata
System.StringrefModel
System.StringrefId
System.StringrefLabel
System.BooleanisComputed
List<System.String>lookupIds