Questions tagged [breeze-sharp]

Breeze.Sharp is a .NET client 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 .NET client. Breeze.Sharp is a sister offering to the Breeze.Js library for Javascript rich clients. The API's are very similar and any web service built for one can talk to the other.

Breeze is a .NET client 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 .NET client. Breeze.sharp is a sister offering to the BreezeJs library for Javascript rich clients. The API's are very similar and any web service built for one can talk to the other.

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 using LINQ 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

  • [Facebook]
  • [Twitter]
  • [Google+]

Getting started

72 questions
0
votes
1 answer

Updating existing Breeze entities / entities not tracking object changes

The code below returns a single record from my database, as-expected. However, it fails to track changes in the UI. I'm binding myObject's properties to various fields using angularjs. Everything initially loads fine, but if I make changes to the…
Josh
  • 1,876
  • 3
  • 21
  • 35
0
votes
1 answer

Breezejs iterates query with $top twice

Breeze v1.5.4 + webapi2 When I call my method, IQueryable InvestObjectInfos(....) like this: /DataApi/InvestObjectInfos?$orderby=TreeNode desc,Id&$top=20&treeNodeIds[]=1204¬Changed=false&isOrder=-1&searchString= I always get 2…
xumix
  • 593
  • 7
  • 17
0
votes
1 answer

breeze.sharp - taskResult.Result - no response

I am stuck in a weird problem. When I query data using breeze client (c#), I get data fine in my unit test. When I call the same code from my webApi controller, it hangs on task.Result. Has anyone seen this behavior? Here is the code: // This…
Deepak
  • 126
  • 1
  • 11
0
votes
0 answers

BreezeSharp - Is there any equivalent of AsNoTracking

I'm caching some objects on the client side local cache in a WPF app. I'd like to fetch the data from server when the app starts and then disconnect the EntityManager so that it doesn't maintain another copy of the objects. Is there any overload of…
skywqr
  • 36
  • 6
0
votes
1 answer

Breeze.js: Ampersand character ("&") in where clause throws error

Here is the JavaScript code to create my Breeze query: var query = new breeze.EntityQuery().from("suppliers"). where("Name", op.Contains, "&"). select("Name"). orderBy("Name"). take(50); When I send…
Jer
  • 383
  • 3
  • 17
0
votes
1 answer

Filtering on 3 deep-level entity with OData/BreezeJS

I'm quite new with OData, EF and BreezeJS concepts. I'm now in charge of a project that was already developed with the help of Entity Framework/BreezeJS/Angular libraries. I need to improve it. There's something I really don't understand in the…
SiZiOUS
  • 638
  • 1
  • 8
  • 9
0
votes
1 answer

In BreezseSharp how do I add the OAuth Token to the header of the Query?

I am trying to figure out how to add the OAuth Token to a Breeze-Sharp request. I am using Microsoft WebAPI and I want to use the OAuth token from OWIN to authorize all my query requests. I am not seeing where or how to change the request headers. I…
BryanP
  • 1
  • 1
0
votes
0 answers

Breeze.Sharp MVVM trying to get results from the database - error

I am using Breeze.Sharp for getting entities out of the database. I am getting this error when trying to retrieve "result": Cannot find a default resource name for CLR type: AHS.Apps.Call.WPF.Entities.CallActionCategory I've stepped through the…
jenjerstar
  • 45
  • 8
0
votes
1 answer

(0x800a138f) Unhandled exception in IE8 after adding BreezeJS to Durandal project

I'm hoping someone with some experience in Breeze/Durandal 2 on .NET 4.0 will be able to assist me with this error, as I'm pretty new to the mix. I've been working on a Durandal 2/KO/Require SPA project that lately has been compiling fine and…
0
votes
0 answers

Breeze Complex Type Array Validation - Issue

I am trying to do the validation for the data properties present in complex type array. Below shown is the sample breeze schema and the complex type used. Breeze schema: { "name": "mailingAddress", "complexTypeName":…
Dinesh Kumar
  • 107
  • 1
  • 10
0
votes
1 answer

Angular and Breeze edit Date object

I have an AngularJS application where I want to edit a Date object that is being exposed by ASP Web API through BreezeJS. When I try to edit this field in a HTML form it doesn't quite work. It seems to edit part of the object, or doesn't bind to the…
user4263039
0
votes
1 answer

Unable to locate metadata resource with BreezeSharp on Xamarin client

I have setup an ASP.Net WebApi site that uses Breeze to serve data. I also have an angular webclient using BreezeJs which talks successfully to the webapi and gets data. Currently, I am trying to connect a Xamarin client to the WebApi using Breeze#…
Donal
  • 550
  • 1
  • 6
  • 14
0
votes
1 answer

Is it possible Asp.Net MVC + Breeze + Angular working together?

I am working in a new project based on Asp.Net MVC + Breeze + Angular. I wanted to use the pre-created views and MVC controllers for the account (login, logout, recover password, etc.) Additionally I want to add mini SPA pages using Breeze and…
Dabiel Kabuto
  • 2,762
  • 4
  • 29
  • 45
0
votes
1 answer

BreezeSharp client and the TimeSpan issue

We're unable to re-hydrate the Breeze# client object which has TimeSpan? properties and if prop value is not null BreezeServer returns the TimeSpan in the ISO 8601 format (eq. "PT8H") but as TimeSpan.Parse() expects different format [ws][-]{ d |…
mrBob
  • 385
  • 6
  • 22
0
votes
1 answer

Dynamic Objects With BreezeSharp

I am working on a project which requires to work with dynamic objects with BreezeSharp. I am receiving the structure of my objects via a JSON file such as: [{ name: 'Admin', serviceAddress: 'http://abcd.com/breeze/admins', …
DDA
  • 991
  • 10
  • 28