Read single objects via DataContract
...
REST-Equivalent
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity/3/
?fields=readonly_display_name,ci_given_name,ci_family_name,g_language |
Example-Code
Code Block |
---|
|
public class MyCoreIdentityDataContract
{
public string ReadonlyDisplayName { get; set; }
public AccessDeniedHandler<string> CiGivenName { get; set; }
[JsonProperty("ci_family_name")]
public AccessDeniedHandler<string> FamilyName { get; set; }
[JsonProperty("g_language")]
public AccessDeniedHandler<IDropDownAttributeValue<int>> Language { get; set; }
}
public async Task GetCoreIdentityById()
{
var api = GetService<IApiV2Client>();
var endpoint = api.DmcoreService.Servicedmcore.CoreIdentity;
var item = await endpoint.GetByIdAsync<MyCoreIdentityDataContract>(3);
} |
...
REST-Equivalent
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity/3/
?fields=readonly_display_name,ci_given_name,ci_family_name,g_language |
Example-Code
Code Block |
---|
|
public async Task GetCoreIdentityById()
{
var api = GetService<IApiV2Client>();
var endpoint = api.DmcoreService.Servicedmcore.CoreIdentity;
var item = await endpoint.GetByIdAsync(3, new
{
ReadonlyDisplayName = string.Empty,
CiGivenName = default(AccessDeniedHandler<string>),
CiFamilyName = default(AccessDeniedHandler<string>),
GLanguage = default(IDropDownAttributeValue<int>AccessDeniedHandler<IDropDownAttributeValue<int>>)
});
} |
Read list of objects via DataContract
...
No exact equivalent available because IPagedAsyncEnumerable<TResult>
carries out paging in the background and further entries are loaded if necessary.
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity
?fields=readonly_display_name,ci_given_name,ci_family_name |
...
No exact equivalent available because IPagedAsyncEnumerable<TResult>
carries out paging in the background and further entries are loaded if necessary.
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity
?fields=readonly_display_name,ci_given_name,ci_family_name |
...
No exact equivalent available because IPagedAsyncEnumerable<TResult>
carries out paging in the background and further entries are loaded if necessary.
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity
?fields=readonly_display_name,ci_given_name,ci_family_name,core_identity_type.id |
...
No exact equivalent available because IPagedAsyncEnumerable<TResult>
carries out paging in the background and further entries are loaded if necessary.
Code Block |
---|
GET /apiv2/latest/servicedmcore/CoreIdentity
?fields=readonly_display_name,ci_given_name,ci_family_name,core_identity_type.id
&filter=ci_zip_code eq 5000 |
...