azure .net 服务器 sdk 是否在没有相应控制器操作的情况下自动处理来自 .net 客户端库事件的查询?
Does the azure .net server sdk automatically handle queries from the .net client library event without the corresponding controller actions?
如果我从客户端使用这样的查询,List<TodoItem> items = await todoTable.Where(todoItem => todoItem.Complete == false).ToListAsync();
azure .net 客户端 sdk 会将其转换为相应的 URI:GET /tables/todoitem?$filter=(complete+eq+false) HTTP/1.1.
但是,如果我的 .net 后端没有相应的端点来匹配它,.net 服务器 sdk 是否仍会负责将其转换为相应的 sql 语句和 return 结果?
我在文档中看到的示例似乎只有 // GET tables/TodoItem and // GET tables/TodoItem/{id}
的控制器操作,所以我想知道如何处理所有其他查询?
so I was wondering how all the other queries would get handled?
我们可以从博客中获取The HTTP Table Interface。博客中有一些片段。
SDK 向我们公开了六个不同的端点供您使用。
Operation Endpoint Description
GET /tables/{tablename} QUERY: Read all or a subset of records from the table
GET /tables/{tablename}/{id} READ: Read a specific ID within the table
POST /tables/{tablename} INSERT: Inserts a new record into the table
POST /tables/{tablename}/{id} UNDELETE: Undeletes a previously deleted record
PATCH /tables/{tablename} UPDATE: Updates the provided record with new data
DELETE /tables/{tablename} DELETE: Deletes (or marks for deletion) the provided record
will the .net server sdk still take care of translating it to the corresponding sql statement and return results ?
GET /tables/{tablename}
通过此请求,我们可以发送包含 OData v3 规范子集的 OData v3 查询。支持过滤器、选择、Skip/Take(分页)和 IncludeTotalCount 有关 URL 约定(OData 版本 3.0)的更多详细信息,请参阅 article。
如果我从客户端使用这样的查询,List<TodoItem> items = await todoTable.Where(todoItem => todoItem.Complete == false).ToListAsync();
azure .net 客户端 sdk 会将其转换为相应的 URI:GET /tables/todoitem?$filter=(complete+eq+false) HTTP/1.1.
但是,如果我的 .net 后端没有相应的端点来匹配它,.net 服务器 sdk 是否仍会负责将其转换为相应的 sql 语句和 return 结果?
我在文档中看到的示例似乎只有 // GET tables/TodoItem and // GET tables/TodoItem/{id}
的控制器操作,所以我想知道如何处理所有其他查询?
so I was wondering how all the other queries would get handled?
我们可以从博客中获取The HTTP Table Interface。博客中有一些片段。
SDK 向我们公开了六个不同的端点供您使用。
Operation Endpoint Description
GET /tables/{tablename} QUERY: Read all or a subset of records from the table
GET /tables/{tablename}/{id} READ: Read a specific ID within the table
POST /tables/{tablename} INSERT: Inserts a new record into the table
POST /tables/{tablename}/{id} UNDELETE: Undeletes a previously deleted record
PATCH /tables/{tablename} UPDATE: Updates the provided record with new data
DELETE /tables/{tablename} DELETE: Deletes (or marks for deletion) the provided record
will the .net server sdk still take care of translating it to the corresponding sql statement and return results ?
GET /tables/{tablename}
通过此请求,我们可以发送包含 OData v3 规范子集的 OData v3 查询。支持过滤器、选择、Skip/Take(分页)和 IncludeTotalCount 有关 URL 约定(OData 版本 3.0)的更多详细信息,请参阅 article。