breeze

angular + breeze + mongoLab

拜拜、爱过 提交于 2019-12-08 12:17:50
问题 I try to use breeze in Angular with MongoLab Api in plunkr. var dataService = new breeze.DataService({ serviceName: "https://api.mongolab.com/api/1/databases/webuniversite?apiKey=apikey", hasServerMetadata: false, }); var manager = new breeze.EntityManager({ dataService: dataService }); I get "Origin http://run.plnkr.co is not allowed by Access-Control-Allow-Origin. " message. Any idea for use of MongoLab together with Breezejs. 回答1: We're not ready for MongoDb yet. Almost. Very soon. There

Can't save the data to OData controller after updating to Microsoft.AspNet.WebApi.OData 5.3.x

谁都会走 提交于 2019-12-08 12:17:30
问题 Not sure what's changed exactly and causing this partial error (since it's not happening with retrieving the data) but after updating Microsoft.AspNet.WebApi.OData library to 5.3.x version, breeze has an issue with saving the data to OData controller. It's about the urls of the batch requests. It can be reproduced with breeze's its own sample OData project as well; http://www.breezejs.com/samples/breeze-web-api-odata If you look at ExecuteRequestMessagesAsync method of the BatchHandler class,

Immediate Auto Saving with breeze

妖精的绣舞 提交于 2019-12-08 07:53:59
问题 I am implementing a form using Knockout and breezejs, I want to save each field when the user change the focus. So each change implies one save call to the server. The problem is that if the user does some changes while the previous save call is beeing done, the changes which weren't included in the first call, are restored to their original values when the server responds. This is the configuration of my manager: var manager = new breeze.EntityManager({ serviceName : "/api/UserCentre/",

Breeze $filter projections

雨燕双飞 提交于 2019-12-08 07:34:12
问题 I am having an issue trying to filter data because breeze is adding the $filter clause at the end of the URL and the WCF\odata service is throwing filter cannot be after select clause. public IQueryable<order> Orders() { string owner= Membership.GetUser(Thread.CurrentPrincipal.Identity.Name).owner; IQueryable<Consigne> q = this.db.Consignes // .AddQueryOption("Dest", dest) .Where(x => x.Owner == owner) .Select(f => new order{ Name= f.Name, Address1 = f.Address1, Address2 = f.Address2,

Nested query/Navigation Property collection

那年仲夏 提交于 2019-12-08 05:59:21
问题 Assume the following models: (example taken from Breeze DocCode) public class Customer { public Guid CustomerID { get; internal set; } public ICollection<Order> Orders { get; set; } } public class SomeDetail{ public string name{ get; set; } } public class Order { public int OrderID {get; set;} public Guid? CustomerID {get; set;} public SomeDetail detail {get; set;} } Nested queries against single Navigation Properties are clear to me. How could this be done if the Navigation Property is a

BreezeJs, saveChanges() - Uncaught TypeError: Cannot read property 'statusText' of undefined

不打扰是莪最后的温柔 提交于 2019-12-08 04:13:41
问题 I'm using BreezeJS with Angular to consume data from a Restful OData Service provided by an SAP Netweaver Gateway System. The application is currently reading the data from the service correctly, including the metadata and has this all held in the EntityManager as expected. However when I change the status of one of the entities and perform a saveChanges(), neither the success nor failure callbacks are called, instead a console error is displayed. Uncaught TypeError: Cannot read property

Issue with inheritance with WebAPI, OData v3 and BreezeJs

六眼飞鱼酱① 提交于 2019-12-08 02:45:39
问题 We are using WebAPI 2.2, with OData v3 and BreezeJS and are having an issue when using inheritance, we have a setup along the following lines (simplified obviously for this issue) We have a Vehicle abstract class and then two other classes (Bus and Car) which inherit from Vehicle, such as: public abstract class Vehicle { public int Id { get; set; } public string Name { get; set; } } public class Bus : Vehicle { public int NumberOfSeats { get; set; } } public class Car : Vehicle { public

breeze projection : error selecting non scalar navigation properties

北慕城南 提交于 2019-12-08 02:41:33
问题 Ho to everybody. Below you can see the partial result of the EF Power Tools reverse engineering made on the database of mine. public partial class Articoli { public decimal Id_Articolo { get; set; } public string Codice { get; set; } public virtual ICollection<Udc_Dettaglio> FK_Udc_Dettaglio_Articoli { get; set; } } public partial class Udc_Dettaglio { public decimal Id_Udc { get; set; } public decimal Id_Articolo { get; set; } public virtual Articoli FK_Udc_Dettaglio_Articoli { get; set; } }

Breeze does not replace the Ref: node with its real data

老子叫甜甜 提交于 2019-12-08 01:38:59
问题 How to force breeze to load the real Node data instead of something like Object {$ref: "5"} ? This happens all the time except for one of my extended properties that I created in my Client side code. The raw JSON has this part: CurrentUserAssignments: [ { $ref: "5" } ], which never gets referred to the node 5, which is also included in raw JSON results. Here is part of my EF Entity: public class Task { public Guid Id {get; set;} private ICollection<Assignment> _assignments; public virtual

Breeze.js - getting error trying to use “any” operator - error: Unable to get value of the property 'isAnonymous': object is null or undefined

北城以北 提交于 2019-12-07 18:23:36
问题 I am trying to use the "any" operator in Breeze to query a many table and I am getting the following error - TypeError: Unable to get value of the property 'isAnonymous': object is null or undefined The only stackoverflow question I can find that seems related is this one, but there is no solution to the isAnonymous issue because the poster did not provide more code: breeze projection : error selecting non scalar navigation properties I am using Breeze 1.4.11 with Entity Framework 5 The query