Questions tagged [breeze]

Breeze is a JavaScript library that helps manage data in a rich client application. You can query and save data as complex object graphs, and share these graphs across multiple screens of your JavaScript client.

Breeze is a JavaScript library that helps manage data in a rich client application. You can query and save data as complex object graphs, and share these graphs across multiple screens of your JavaScript client.

Headline features

  • Business data objects mirror your server-side model. Breeze creates them dynamically. Their properties bind to UI controls so the UI updates when your data model changes. Each object knows when it has changed and what has changed.

  • Query in a JavaScript query language with filters, ordering, and paging. Breeze queries implement the OData standard so you can “expand” the result with related entities or “project” over the data to cherry pick columns and flatten object graphs.

  • Save one entity or a batch of entities as a single transaction. Batch a mix of entity types (customers, orders, line-items) and data operations (inserts, updates, deletes).

  • Cache data on the client to reduce trips to the server and refresh as needed. Query a cache like you query the server. Save the cache locally and run offline; synch changes when you’re reconnected.

  • Extend the model with custom methods, properties, and events.

Download

Community

Getting started

Breeze in the wild

2797 questions
34
votes
2 answers

Breeze Sharp - Expand not working with lambda expression

When I attempt to expand a navigation property via lambda like so: query = query.Expand(x => x.Dealers); My query fails with Inner Exception Inner Exception Message: The expression 'x => x.Dealers' is not a valid expression for navigation path.…
ProxyTech
  • 1,105
  • 8
  • 19
34
votes
3 answers

How is breeze.js handling security and avoiding exposing business logic

We are considering breeze js to build enterprise applications. The awesomeness of breeze is that we can execute queries right from the client browser. This allows to constructs dynamic queries based on the users input without loading unnecessary…
Oscar Agreda
  • 423
  • 6
  • 15
34
votes
3 answers

Use jQuery or Q.Js for promises

I'm looking into BreezeJs and there samples are using Q.js for promises to handle asynchronous calls. John Papa is also using Q. JQuery has promises as well. What are the differences between the two?
AlignedDev
  • 8,102
  • 9
  • 56
  • 91
32
votes
4 answers

Alternative to Breeze.js?

Is there an alternative to Breezejs that does not require .Net or Enterprise Framework Connector or database, and works with plain REST services that accept and return only JSON (no metadata)?
Steve
  • 779
  • 2
  • 6
  • 18
32
votes
3 answers

how to make an Angular.js app offline with server sync when available

I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, http://pouchdb.com/ looks like a cool solution but anyone has use it on…
Orlando
  • 9,374
  • 3
  • 56
  • 53
21
votes
2 answers

KO.Computed equivalent in Angular / Breeze Initializer

Trying to get a more in-depth understanding of how Angular treats data binding and understanding it better and one thing is difficult to get my head around - In Knockout I use a computed to keep track of changes to a property. In Angular it to…
PW Kad
  • 14,953
  • 7
  • 49
  • 82
21
votes
3 answers

Isn't it dangerous to have query information in javascript using breezejs?

Just starting to play with breeze.js because of the obvious gains in coding time, i.e. managing to access model data from the server direct within Javascript (I am a newbie here, so obviously bare with!). In the past I have used the stock ajax calls…
Dav.id
  • 2,757
  • 3
  • 45
  • 57
20
votes
3 answers

OData query filter for dateTime range

I have a DateTime property in the data returned by a service that looks like "SDateTime":"2014-06-29T03:30:00.000". I need to write a query to get a collection which has the date less than "2014-06-26T03:30:00.000" and greater than…
user2439903
  • 1,277
  • 2
  • 34
  • 68
20
votes
1 answer

Knockout - Using foreach and sort together

I am having trouble combining the foreach binding with a sort. I have a list bound like so:
Widgets is a simple obvservable array: var widgets= ko.observableArray(); This works nicely giving me a list of…
daveywc
  • 3,136
  • 7
  • 45
  • 58
19
votes
6 answers

Current status of Upshot.js

I am thinking of using upshot.js along with Knockout in one of my very important projects. I do not see any documentation or any activity around upshot. Before I commit to this decision, is this project still active? If the entire asp.net stack…
Ajay
  • 746
  • 1
  • 10
  • 25
19
votes
4 answers

How to consume OData service with Html/Javascript?

Our project currently uses Silverlight to consume an Odata service. This has made life pretty simple since we can just reference the OData service thus giving us generated service reference/entities. However there is some discussion on whether we…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
16
votes
3 answers

How to correctly chain conditional(?) promises with Q.js

I've still not quite got a complete understanding of promises so apologies if this is a simple misunderstanding. I have a function for deleting an item on a page but I have a specific behaviour depending on the state of the page. Psuedo code-wise…
Adam
  • 1,011
  • 1
  • 10
  • 25
15
votes
1 answer

BreezeJS vs JayData for SPA development on ASP.NET MVC

As a web developer I've discovered the joys of working with KnockoutJS lately but when it comes to working with the server I'm pretty much left on my own. I've considered BreezeJS and JayData for their CRUD capabilities and batch operations but I'm…
Ziad
  • 1,036
  • 2
  • 21
  • 31
14
votes
3 answers

Spin icon freezes while loading records

I am trying to load records using breeze. While loading record i am showing spin icon. But somehow spin icon seems to stop while records are being loaded in grid. Here is my html
James
  • 1,827
  • 5
  • 39
  • 69
13
votes
6 answers

Breeze error: Illegal construction - use 'or' to combine checks

I met this Breeze error [Illegal construction - use 'or' to combine checks] on Chrome when loading the edit page of an entity. When I refresh the page, the error message no longer appears. This error happens randomly, irregularly on my site. I…
zorro-lp
  • 147
  • 1
  • 8
1
2 3
99 100