breeze

BreezeJS on Durandal with PHP REST API (Laravel)

人盡茶涼 提交于 2019-12-11 04:05:27
问题 I'm writing a SPA in Durandal 2.1. So far so good. However, I'm having great difficulties in selecting the right Data Persistence library to communicate with my PHP (Laravel) REST API. The number one library for Durandal is BreezeJS. It is said that it supports API's without oData / ASP.NET Entity framework. I've searched for many days now, but I can't find any decent resource telling me how to use BreezeJS with my basic PHP REST API. The wish-list is as follows: Persist data between views

Breeze - Deleted Items nav properties bug

一曲冷凌霜 提交于 2019-12-11 03:39:59
问题 According to the breeze api, when setDeleted is called, it will remove the entity from all the related entities. This is true, but the behavior is flawed when importing a deleted item using the entity manager's importEntities function. The deleted entity will have it's navigational properties emptied, but other entities that have navigational properties containing the deleted item will keep that item in their nav lists. If setDeleted is called on the entity, even though it is already deleted,

Application with fake data source for UI development

≯℡__Kan透↙ 提交于 2019-12-11 03:39:56
问题 I have a web application with an Angular / Breeze client side calling into a Breeze Web API, which uses an Entity Framework code first model. I have a datacontext (Angular service) responsible for all communications with server. I would like to completely separate the server development from the client side development so developers need not even have .NET installed on their system. I would like the solution to require very little coding in way of creating fakes, because the app is changing

Exception while parsing metadata in BreezeJS client

依然范特西╮ 提交于 2019-12-11 03:12:33
问题 Prequel and version info: BreezeJS client version: 1.5.2 Metadata generated on custom server via design-time EntityFramework model (6.1.2) BreezeLabs EdmBuilder (1.0.5) Had problems generating metadata also which can be read here: How to generate valid metadata from EF DBContext via EdmBuilder for OData v3/BreezeJS Question/Problem: Now the breeze client is throwing an error while interpreting the metadata. Unable to process returned metadata: A nonnullable DataProperty cannot have a null

Breeze isPartial

戏子无情 提交于 2019-12-11 03:10:09
问题 Currently playing with John Papa's Hot Towel, I am currently having a strange error: TypeError: Object [object Object] has no method 'isPartial' I have been looking into this isPartial thing but without success. All I've done is create a new kind of entity. I don't know if I should provide more information for this problem. Please help! Thanks :) Here's the full error below: "TypeError: Object [object Object] has no method 'isPartial' at proto.setProperty (http://localhost:13763/scripts

breeze: unexpected error in getEntityGraph

╄→гoц情女王★ 提交于 2019-12-11 03:09:50
问题 I use getEntityGraph extension and it works fine except in the following scenario: add a new entity don't save it and call setDeleted on the entity call getEntityGraph by passing the entity and a np collection as parameters When makePathSegmentFn is called, it crashes on this line : grps.forEach(function(grp) { vals = vals.concat(grp._entities.filter(function (en) { return en.getProperty(fkName) === keyValue; })); }); en is null so it raises an exception. I've worked around the problem by

Breeze predicate on multiple levels of children

感情迁移 提交于 2019-12-11 02:59:35
问题 I'm a beginner in Breeze and have a problem with the following situation I have the following model. A Person entity, can have multiple Projects assigned. A project can have multiple Tasks. And each Task has a Priority. I would like to get all the Persons which have at least one Project which has at least one Task with a Priority code 'High'. I found I can use the 'any' or 'some' for working with 2nd level children. var p1 = new breeze.Predicate.create('projects', 'some', 'client.code',

breeze.Predicate for Decimal Type

假装没事ソ 提交于 2019-12-11 02:58:14
问题 is there a way to create a breeze predicate for a property that its type is Edm.Decimal? because the datatype in next expression is always double and I don't find a way to say to breeze that I just need create a predicate for a decimal type and not double type, because in final url request I got '10.53 d ' value instead '10.53 m ' value, then the server answer me with an error. var p = new breeze.Predicate( 'UnitPrice' , '>=', 10.53); Thanks in advance. 回答1: You can always explicitly state

Sorting Breeze navigation properties

丶灬走出姿态 提交于 2019-12-11 02:42:10
问题 How do I go about sorting a set of entities in a breeze entity? For example if I have an order with many items, how do I sort the items by orderDate? <div databind="ko with: order"> <ol databind="foreach: items"> <li/> </ol> </div> Also, I can't use items.sort() in the data-bind, because I am making the list items sortable. https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDYQFjAA&url=https%3A%2F%2Fgithub.com%2Frniemeyer%2Fknockout-sortable&ei

jquery mobile and Durandal

﹥>﹥吖頭↗ 提交于 2019-12-11 02:27:19
问题 Please anyone suggest me, it's good idea to use Durandal and JuqueryMobile for mobile based application (Browser). I am planning to develop an application using Durandal, Jquerymobile, MVC4, KnockoutJs, and BreezeJs. Thanks 回答1: I wouldn't recommend using jQuery mobile because it has a lot of overlapping features w/ durandal. Unless you want to just use jQuery mobile for the controls. I asked on the google group forums and ratchet was suggested instead. Not exactly the answer your looking for