示例#1
0
        private async Task <DataServiceResponse> DeleteEntityAsync(Uri address, string entitySetName, UnicodeRouteTests_Todoü entity)
        {
            var context = CreateClient(address);

            context.AttachTo(entitySetName, entity);
            context.DeleteObject(entity);

            return(await context.SaveChangesAsync());
        }
示例#2
0
        private async Task <QueryOperationResponse> LoadPropertyAsync(Uri address, string entitySetName, UnicodeRouteTests_Todoü entity, string propertyName)
        {
            var context = CreateClient(address);

            context.AttachTo(entitySetName, entity);

            return(await context.LoadPropertyAsync(entity, propertyName));
        }