odata

Microsoft Teams Graph API - Invalid bind property name owners in request

一世执手 提交于 2021-01-28 06:58:08
问题 I'm currently having major issues with creating teams from the Graph API. I was initially trying to create teams based on groups, however I have found out today that you can now create a team without creating a group first then waiting 15 minutes to then create the team from the following link. This would make things considerably simpler. https://docs.microsoft.com/en-us/graph/api/team-post?view=graph-rest-1.0 I am using the Microsoft.Graph SDK (v3.12.0 released 26th Aug) so replicated the

OData AspNetCore support for long URLs useing $query is not working

孤街浪徒 提交于 2021-01-27 21:30:47
问题 As it is been pointed in this article, with $query keyword you can solve the problem of long OData URLs after the version 7.5 of Microsoft.AspNetCore.OData . but in my project(I'm using version 8.preview3) I tried the use this but I keep getting 404 not found error. Here are my working URL examples: https://localhost:44346/odata/WFC/APost/ https://localhost:44346/odata/WFC/APost/?$select=id ... but when I use a POST request with $query I receive 404 error: POST: https://localhost:44346/odata

OData client $expand does not work

坚强是说给别人听的谎言 提交于 2021-01-27 09:34:05
问题 Software used: ASP.Net Web Api 2 OData v4 Microsoft OData Client 6.13 Consider the following Model: Location (Id, LocationName, Street, PostalCodeId) PostalCode (Id, ZIP) A Location has one PostalCode and a PostalCode has many Locations . This is the OData-Configuration: ODataModelBuilder builder = new ODataConventionModelBuilder(); builder.EntitySet<Location>("Locations"); builder.EntitySet<PostalCode>("PostalCodes"); config.MapODataServiceRoute( routeName: "ODataRoute", routePrefix: "odata"

Odata serialization error for SingleResult.Create on an empty IQueryable

我的梦境 提交于 2021-01-27 05:24:36
问题 I'm using OData v4 and trying to get a really simple controller working: Controller: public class ProductController : ODataController { readonly MasterDataEntities db = new MasterDataEntities(); [EnableQuery(PageSize = MaxPageSize)] public IQueryable<Product> Get() { return db.Products; } [EnableQuery] public SingleResult<Product> Get([FromODataUri] string key) { return SingleResult.Create(db.Products.Where(p => p.Code == key)); } } WebApiConfig: ODataModelBuilder builder = new

Odata serialization error for SingleResult.Create on an empty IQueryable

不问归期 提交于 2021-01-27 05:24:09
问题 I'm using OData v4 and trying to get a really simple controller working: Controller: public class ProductController : ODataController { readonly MasterDataEntities db = new MasterDataEntities(); [EnableQuery(PageSize = MaxPageSize)] public IQueryable<Product> Get() { return db.Products; } [EnableQuery] public SingleResult<Product> Get([FromODataUri] string key) { return SingleResult.Create(db.Products.Where(p => p.Code == key)); } } WebApiConfig: ODataModelBuilder builder = new

using ODataRoutePrefix and ODataRoute for OData AttributeRouting is not working

前提是你 提交于 2021-01-25 07:57:42
问题 Note: This is not a duplicate since I'm using a completely new implementation version of OData in AspNetCore . Based on this confusing article by Microsoft, I'm trying to use AttributeRoutingConvetion and ultimately using ODataRoutePrefix and ODataRoute to route OData requests using Asp.net Core 5 Web API and Microsoft.AspNetCore.OData Version="8.0.0-preview3" ( please pay attention to version ). Here is my code : Startup.cs public void ConfigureServices(IServiceCollection services) {

Export business data from UI5 to Excel

Deadly 提交于 2021-01-19 08:36:53
问题 I have a table with product details like ID , description , price etc.. I am trying to export these data to an Excel. Issue If I just do getModel("A") , and then bind few properties of "A", which are not nested, the excel is downloaded fine. But if there is any other structure, which I am trying to access for example, getModel("A").getProperty("/Person/PersonFullName") , it will leave that column blank . { // Controller onExport: function() { var aCols, aProducts, oSettings; aCols = this

iOS ReplayKit实时录制屏幕实现方案的细节记录

偶尔善良 提交于 2021-01-10 16:50:55
项目有个需求,需要把ios设备上的操作画面实时传输出去,也就是类似推流手机直播画面的方案。 一番调研后发现在ios中,我们可以通过ios自带ReplayKit框架实现。 关于ReplayKit的讲解,这篇文章写的很好,可以看一下 iOS端使用replaykit录制屏幕的技术细节 文章详细介绍了ReplayKit的发展历程,从ios9~ios12的每个版本的功能迭代都有写,包括如何录制当前app内容,还是制系统层次的内容等。 不过由于我的需求是只录制当前App内容,所以下面只讲解这方面的。 我的测试demo流程大概这样 1、通过ReplayKit开启录屏 2、实时获取视频流CMSampleBuffer 3、对CMSampleBuffer处理发包或推流 为了效果快速呈现,这里我采取udp发包来传输内容 以下代码仅供参考逻辑。 1、开启录屏 /// 开启录制屏幕 func startRecord() { if ! RPScreenRecorder.shared().isAvailable{ print( " 暂不支持xxx功能 " ) return } if #available(iOS 11.0 , * ) { printDebug(message: " start record " ) if _udpSocket == nil{           //初始化udp initUdp(

Extension methods for two different classes

旧时模样 提交于 2021-01-07 01:19:48
问题 I have a situation where in C# I consume data via an OData API. Actually, there are two different OData endpoints (two different models), where one is a superset of the other. I have created two different C# projects (A and B) which contain code to interact with the two API's. The code is automatically generated using Unchase OData Connected Service extension. As a result, project A and project B both contain a class ODataService , which is the main type to interact with. Depending on whether

Extension methods for two different classes

爷,独闯天下 提交于 2021-01-07 01:14:27
问题 I have a situation where in C# I consume data via an OData API. Actually, there are two different OData endpoints (two different models), where one is a superset of the other. I have created two different C# projects (A and B) which contain code to interact with the two API's. The code is automatically generated using Unchase OData Connected Service extension. As a result, project A and project B both contain a class ODataService , which is the main type to interact with. Depending on whether