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
Type | Name |
---|---|
ServiceStack.JsonApiClient | client |
ServiceStack.AppMetadata | appMetadata |
System.String | model |
System.String | id |
System.String | label |
System.Boolean | isComputed |
GetValue(String, String, String)
View Source
Declaration
public static string GetValue(string model, string id, string label)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | model |
System.String | id |
System.String | label |
SetValue(String, String, String, String)
View Source
Declaration
public static void SetValue(string model, string id, string label, string value)
Parameters
Type | Name |
---|---|
System.String | model |
System.String | id |
System.String | label |
System.String | value |
SetValue(RefInfo, Dictionary<String, Object>)
View Source
Declaration
public static string SetValue(RefInfo refInfo, Dictionary<string, object> refModel)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.RefInfo | refInfo |
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
Type | Name |
---|---|
ServiceStack.JsonApiClient | client |
ServiceStack.AppMetadata | appMetadata |
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
Type | Name |
---|---|
ServiceStack.JsonApiClient | client |
ServiceStack.AppMetadata | appMetadata |
System.String | refModel |
System.String | refId |
System.String | refLabel |
System.Boolean | isComputed |
List<System.String> | lookupIds |