odata

WCF Data Service - Proxy mid-tier service

旧巷老猫 提交于 2019-12-31 04:11:47
问题 The project we are working on is a classic 3 tiered architecture. tier 1 being the database server, tier 2 the application services and tier 3 the presentation tier (a web site). In the application services tier I have a project that includes an entity framework model and a WCF data services based service that exposes the entities within the model e.g.: public class DataService : DataService< PortalEntities > This is a fully fledged OData service that can be queried through the URI e.g.:

UI5 Mock Server with Local Data: “rootUri” Not Working

為{幸葍}努か 提交于 2019-12-31 04:02:57
问题 I'm currently following the UI5 tutorial and am stuck on step 27: Mock Server Configuration. The problem is the rootUri configuration of the mock server. I am using the Northwind OData service as per tutorial and have configured a dataSource for Invoices in the manifest.json . Now, to use the local mock data instead of the online service, I created the necessary files as stated by the tutorial. When I then run the mockServer.html , the server doesn't redirect the service request to the local

.net WebApi OData + breeze => [Q] Unhandled rejection reasons (should be empty)

荒凉一梦 提交于 2019-12-30 09:00:30
问题 I have a .net 4.5 Web Api with OData EntitySetController In client side I got the following js files loaded jquery.min.js q.min.js datajs-1.1.1.min.js breeze.debug.js toastr.min.js angular.js when I call the following javascript breeze.config.initializeAdapterInstance("dataService", "OData"); var manager = new breeze.EntityManager(serviceName); var query = breeze.EntityQuery.from("Customers"); return manager.executeQuery(query).then(success).fail(fail); function success(data) { $log.info(

.net WebApi OData + breeze => [Q] Unhandled rejection reasons (should be empty)

落花浮王杯 提交于 2019-12-30 08:59:22
问题 I have a .net 4.5 Web Api with OData EntitySetController In client side I got the following js files loaded jquery.min.js q.min.js datajs-1.1.1.min.js breeze.debug.js toastr.min.js angular.js when I call the following javascript breeze.config.initializeAdapterInstance("dataService", "OData"); var manager = new breeze.EntityManager(serviceName); var query = breeze.EntityQuery.from("Customers"); return manager.executeQuery(query).then(success).fail(fail); function success(data) { $log.info(

How to expose Azure Sql Server database using OData

折月煮酒 提交于 2019-12-30 06:21:23
问题 Is there a way to create a Azure Sql Database and then expose it as a rest API so you may call restful calls to CRUD tables with OData? 回答1: My colleague wrote a blog on this topic explaining how you can expose an OData end point from a databases hosted on Azure. And if you want to try our product, you can read about the technical specifications and download the product on this SQL Azure OData page. 回答2: Although this is Salesforce related, this tutorial provides good insights on how to

Entity framework with OData(Web API) is sending Order By clause By default to Sql Query

非 Y 不嫁゛ 提交于 2019-12-29 07:01:11
问题 I am using Web Api with OData. and I have an entity defined in an EF 5.0. I am sending very simple request to Controller:: $.ajax({url: "/odata/Details?$top=10", type: "GET", dataType: 'json', success: function (data) { viewModel.list(data.value); } Now code on My controller:: [Queryable] public override IQueryable<Area> Get() { return db.Area.AsQueryable(); } Query i see using SQL Profiler:: SELECT TOP (@p__linq__1) [Project1].[id] AS [id1], [Project1].[name] AS [name1], [Project1].[pucrhase

OData $filter with items in a $expand

谁说我不能喝 提交于 2019-12-29 03:34:28
问题 I have given some web services to access informations. The first thing that i have tries to expand a node . And i have done that successfully with following code http://www.domain.com/ODataService/WorkService.svc/CaseStudies?format=json&$expand=ServiceOfferings Now i want to filter ServiceOfferingID that i will get when expanding ServiceOfferings . How can use filter option against a expanded collection http://www.domain.com/ODataService/WorkService.svc/CaseStudies?format=json&$expand

Adding a custom query backed Navigation Property to ODataConventionModelBuilder

人走茶凉 提交于 2019-12-28 06:45:16
问题 Situation I created the following Model classes public class Car { public int Id {get;set;} public string Name {get;set;} public virtual ICollection<PartState> PartStates {get;set; } } public class PartState { public int Id {get;set;} public string State {get;set;} public int CarId {get;set;} public virtual Car Car {get;set;} public int PartId {get;set;} public virtual Part Part {get;set;} } public class Part { public int Id {get;set;} public string Name {get;set;} } And a matching DbContext

Adding a custom query backed Navigation Property to ODataConventionModelBuilder

↘锁芯ラ 提交于 2019-12-28 06:45:14
问题 Situation I created the following Model classes public class Car { public int Id {get;set;} public string Name {get;set;} public virtual ICollection<PartState> PartStates {get;set; } } public class PartState { public int Id {get;set;} public string State {get;set;} public int CarId {get;set;} public virtual Car Car {get;set;} public int PartId {get;set;} public virtual Part Part {get;set;} } public class Part { public int Id {get;set;} public string Name {get;set;} } And a matching DbContext

RFCまたはBAPIを使用してODataサービスを作成する方法

我与影子孤独终老i 提交于 2019-12-27 10:43:12
1.トランザクションはSEGW ⇒ Service Gateway Builderに移動し、それに対するです。 2. プロジェクト作成ウィンドウで、プロジェクト名と説明を入力します。 [属性]セクションで、デフォルトのままにしてからパッケージ名を指定します。 さらに進むにはOKボタンを押してください。 3. OKボタンを押すと、Gateway service builderでプロジェクトが作成されたことがわかります。 プロジェクト内のすべてのノードが空です。 次のステップでは、ODataサービスに必要なエンティティタイプとエンティティセットを作成します。 4. 製品の一覧を取得するためにBAPI“ BAPI_EPM_PRODUCT_GET_LIST”を使用しているので、ここではBAPIの構造BAPI_EPM_PRODUCT_HEADERに似たエンティティタイプ構造が必要です。 エンティティタイプを作成するには、データモデル→インポート→RFC / BORインタフェースを右クリックします。 5. 「エンティティタイプの作成」ウィンドウで、エンティティタイプ名を入力します。 [データソースの属性]セクションで、[タイプ:リモートファンクションコール]、[BAPI名]に[BAPI_EPM_PRODUCT_GET_LIST]を選択します。 [ターゲットシステム]セクションの下 -