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
13
votes
3 answers

Deserializing DbGeometry with Newtonsoft.Json

I'm building a SPA using Angular,Breeze and Web API 2 following the approach as outlined by John Papa in his latest PluralSight course. Everything works well and I can pull information, update, insert, delete back to the server. However I'm using…
Grunter
  • 187
  • 2
  • 12
13
votes
1 answer

Using Breeze.js without Entity Framework

We are trying to develop a SPA using similar techniques and technologies as John Papa's Pluralsight courses (e.g., Web API, knockout, jquery, etc.). However, as a company, we decided to not use Entity Framework. We want to write our server-side…
lmttag
  • 2,499
  • 4
  • 26
  • 30
13
votes
2 answers

How to properly send action parameter along with query in BreezeJs

Currently I am calling all data queries as showed on BreezeJs docs / examples: getEntityList = function (predicate) { var query = new entityModel.EntityQuery().from("EntityList"); if (predicate) query = query.where(predicate); return…
Tomasz Paprocki
  • 133
  • 1
  • 5
12
votes
3 answers

How we survive using a local time zone with Breeze

I'm writing this to gather comments on our approaches and hopefully help someone else (and my memory). Scenario All of our databases use DateTime data types with no time zone information. Internally we know that all of the dates/times in our…
Brendan
  • 740
  • 4
  • 12
11
votes
2 answers

AngularJs console.log "$q is not defined"

I am getting this error in the console $q is not defined. When I did some research I found some thing like .q library has been deprecated from http://www.breezejs.com/documentation/breeze-labs/breezeangularqjs If this is so, then the whole concept…
RONE
  • 5,415
  • 9
  • 42
  • 71
11
votes
1 answer

Testing breeze application

I am doing an application with durandal, breeze, and knockout. I have started to implement some test. The first problem that I have had is to decide what I should test and what not. I know that I should test everything, but it is not always possible…
jvrdelafuente
  • 1,992
  • 14
  • 23
11
votes
1 answer

angularjs module dependencies

I've defined my main module as such: angular.module('domiciliations', ['domiciliations.service', 'loggerService', 'person.directives']). config(['$routeProvider', function ($routeProvider) { $routeProvider. when('/domiciliations/mandats',…
Sam
  • 13,934
  • 26
  • 108
  • 194
11
votes
2 answers

Why does HotTowel include Breeze?

This may sound like a dumb question on the surface, but why does the Hot Towel SPA Template include Breeze at all? I've been spending the last few days learning Hot Towel and its dependencies, and as far as I can tell, nothing in the template…
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
11
votes
2 answers

Breeze: How can I create a GUID key for new entities on the client?

Using Breeze, what is the simplest way to populate a GUID key when an entity is created?
Ryan CS
  • 128
  • 1
  • 5
11
votes
2 answers

Are there best practices/patterns for synchronizing local and remote data in SPA (html5 single page applications)?

I'm writing a simple "todo - helloworld" with jqueryMobile + knockout + breeze + WebAPI to learn about SPAs (Single Page Application) in a mobile context (unreliable internet connection) To enable offline usage the WebApp will leverage Application…
11
votes
1 answer

A data persistence library for AngularJs

There is an alpha for Ember Js and also Persistence. Is there something similar for AngularJs (or it is in plan)? Maybe there is something that is framework independent? What I need is actual library which enables these: To define my object…
Andrej Kaurin
  • 11,592
  • 13
  • 46
  • 54
10
votes
4 answers

using Angular validation directives with Breeze blocks any input that is invalid

If you add any of the angular directives for validation (ng-minlength, ng-maxlength, ng-pattern, etc.) to an input that is bound to a breeze entity it blocks any user input if found to be invalid. If the value from ng-model is initially valid it…
10
votes
3 answers

System.Web.Http reference defaults to 4.0 version no matter how I try

I am using the BreezeApi NuGet package in my project. It is in Visual Studio 2013. I get this error. Error 41 Assembly 'Breeze.WebApi2, Version=1.4.0.0, Culture=neutral, PublicKeyToken=f6085f1a45e2ac59' uses 'System.Web.Http, Version=5.0.0.0,…
Jap Evans
  • 1,097
  • 8
  • 22
  • 42
10
votes
2 answers

breezejs: date is not set to the right time

I've noticed that if a date property comes back from the server with the value "2013-07-11T17:11:04.700", then breeze changes the value to Thu Jul 11 19:11:04 UTC+0200 2013. Notice the time is now 2 hours ahead ! I had already come across this…
Sam
  • 13,934
  • 26
  • 108
  • 194
9
votes
3 answers

Why do i have to call NgZone.run for my view to update in Angular2 with breezejs?

I am trying to learn angular2 and created a test application with an odata webapi backend. In the application i have a view which fetches an array of items and i want to show these in my view. For fetching data from the frontend i am using breezejs…
Jurgen Welschen
  • 871
  • 1
  • 13
  • 21