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
9
votes
1 answer

Breeze and the EdmBuilder for OData v4

I was able to create an OData (v3) service with WebApiOdata and EntityFramework at server side and Breeze at client side thanks to this document. Now I'd like to do the same with the version 4 of OData spec. but there is a problem. The EdmBuilder…
dafriskymonkey
  • 2,189
  • 6
  • 25
  • 48
9
votes
1 answer

Any PHP framework implements ODATA protocol?

Is there any php framework that implements odata protocol, native or by extension? I need to use breezejs on the client and I hope I don't have to implement all the server side work of odata by myself. in case there is no such thing, is there any…
Aladdin Mhemed
  • 3,817
  • 9
  • 41
  • 56
9
votes
3 answers

BreezeJS "WHERE value IN array"

Can specify in the where clause that I want the data that has the column value equal to some values from an array? For example: EntityQuery.from('Customers') .where('DepartmentID','in','[3,5,6]'); Or how else should I do it efficiently since the…
Razvan
  • 3,017
  • 1
  • 26
  • 35
9
votes
2 answers

Securing Breeze on the server to prevent malicious updates to foreign keys

The Problem I'm just trying to figure out exactly how much of my own security I need to implement on the server side when saving changes in Breeze. In particular, I'm thinking about how a malicious user could manually hack the SaveChanges request,…
BinaryMash
  • 378
  • 1
  • 7
9
votes
1 answer

Breeze and RESTful WebAPI

Question: What value does breeze provide when I need to implement my own POST/PUT/GET endpoints per entity in WebAPI? Background: This seems to be a common implementation of a serverside Breeze controller: [BreezeController] public class…
SB2055
  • 12,272
  • 32
  • 97
  • 202
9
votes
1 answer

Breezejs, How to fetch metadata at start with shared EntityManager

I have an Angular application using Breeze and that has a shared EntityManager for my different controllers. A few of my controllers can be reached without executing a query to pre-populate the EntityManager's MetadataStore. I have found somewhat of…
cobywhite
  • 167
  • 1
  • 7
9
votes
2 answers

SignalR combined with Breeze

I have a project that i right now have set up with BreezeJS. Not knowing what goes on inside BreezeJS to the full scope, but just accepted that it works, i have my items shown on screen basically from this simple command. export function…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
9
votes
4 answers

Dropdown filled with options provided by an enum (server side) with Breeze

I develop an asp.net mvc solution with durandal/breeze. I have a dropdown where list is populated from an Enum provided by Entity Framework Code First. Here is the model server side: public enum EnumCategory { Cat1, Cat2, Cat3, …
Bronzato
  • 9,438
  • 29
  • 120
  • 212
9
votes
2 answers

Getting an Enum to display on client side

I'm having hard time understanding how to convert an Enum value to it's corresponding name. My model is as follows: public class CatalogRule { public int ID { get; set; } [Display(Name = "Catalog"), Required] public int CatalogID { get; set;…
Van Dame
  • 159
  • 4
  • 13
9
votes
2 answers

Breeze BeforeSaveEntityonly only allows update to Added entities

Don't know if this is intended or a bug, but the following code below using BeforeSaveEntity will only modify the entity for newly created records (EntityState = Added), and won't work for modified, is this correct? protected override bool…
Chris Small
  • 363
  • 1
  • 3
  • 13
9
votes
1 answer

Breeze doesn't expand more than one navigation property path?

if I run the following query using the NorthindModel, NorthwindDataContext from the breeze samples only the first navigation property is expaned. All other returning null: var query = EntityQuery.from("OrderDetails") .where("OrderID",…
AndyK
  • 117
  • 1
  • 7
9
votes
3 answers

Any Grid suggestions for Breeze?

We decided to use Web API, EF + ASP.NET MVC 4 + Knockout + Breeze for our project after a long research. But we can not find any working grid for Breeze. We want to bind breeze entities to grid and be able to edit data on grid for some scenarios. We…
Umut Özel
  • 354
  • 5
  • 17
9
votes
2 answers

Upshot/Knockout Architectural Best Practices - What is the preferred provider to use in communicating between Upshot and .NET?

For a current project, I am trying to get a feel for how to effectively utilize Knockout 2.1.0, Upshot 1.0.0.2, ASP.NET MVC4, and Entity Framework 4.3. There are a lot of basic architectural questions which don't seem to have ready answers. I am…
Anthony Gatlin
  • 4,407
  • 5
  • 37
  • 53
8
votes
2 answers

ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0' could not be loaded

The Entity Framework provider type 'System.Data.Entity.SqlServerCompact.SqlCeProviderServices, EntityFramework.SqlServerCompact' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'…
8
votes
2 answers

Version problems with deprecated methods on my Breeze scripts

When trying to implement the session part in the tutorial of John Papa Pluralsight Video. I got the following error: Uncaught TypeError: Object # has no method 'extendQ' (function () { 'use strict'; var app = angular.module('app', [ …
Leonardo Lobato
  • 1,047
  • 2
  • 9
  • 22