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
1
vote
1 answer

Conflicts with different versions

I installed the Breeze Sharp client, but get the following warning. Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts;…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
vote
1 answer

Get Access Token with BreezeSharp

I need to use EntityQuery in BreezeSharp to get Access Token from my Breeze WebAPI I have a class called TokenResponseModel for deserializing my json from the server as follows: using Newtonsoft.Json; namespace CMIS.Integration.Common { class…
Amour Rashid
  • 290
  • 3
  • 11
1
vote
2 answers

Is Entities on Client side anti-pattern?

I have used RIA service before, now testing Breeze Sharp. RIA as well as Breeze give an impression that what you see on the server/middle tier is what you see on the client. To support that, the term Entity is being used on both the client and the…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
vote
0 answers

Entity Framework Validation errors not being handled correctly by breeze.sharp client

This issue is in the 0.5.4 release of Breeze.Sharp. Not sure if it should be fixed in Breeze.Sharp or perhaps Breeze.ContextProvider.EF6, but there seems to be a disconnect between expected behaviors. Unexpected Behavior: I have a .Net Web API…
chrismon
  • 75
  • 7
1
vote
1 answer

BreezeSharp - Enum serialization fails

This question is sequel of BreezeSharp - ExecuteQuery fails with NullReferenceExeption In my server side entity I have enum property: [Required] public DataStore DataStore { get; set; } This property in client side entity is defined like this: …
0
votes
0 answers

Breeze.net - slow performance after updating to .net 6

We are updating our project from .net framework 4.7 to .net core 6, but are experiencing some performance issues. Everything was working fine in .net framework 4.7, but now requests are taking a very long time and some even get a timeout exception.…
Nesse
  • 373
  • 4
  • 14
0
votes
0 answers

How to implement search using Breeze Sharp?

I'm currently trying to implement a search function for a table in a database that uses Breeze Sharp and Breeze Asp Net Core. In their docs they just say to do this. // Customers whose name contains the word, "market" var query = new…
0
votes
1 answer

Blazor BoilerPlate - Breeze Controller ApiClient error

Hopefully someone can advise on how to resolve the following issue, I am using the Blazor Boilerplate template to create a site. I added a second data connection (different database) and generated all the code required, I also added a new Controller…
Buda56
  • 13
  • 3
0
votes
0 answers

Breeze sharp create complexType in blazor to pass some data does not work

I am using breeze sharp in my C# blazor application to pass data from my server (loaded from EF context (code first objects)) to the client (EntityType objects) Everything works fine. Now I want to pass an object with some data from server to client…
Jeroen T
  • 31
  • 4
0
votes
1 answer

Why interface is not implemented: List is ICollection

Consider the C# snippet: interface Contract { ICollection Coll { get; } } class Implementation : Contract { public List Coll { get; } //this declaration is mandatory for other reason } Why…
GioviQ
  • 75
  • 1
  • 9
0
votes
1 answer

Breeze.Sharp Cannot Import Metadata from Breeze Server for ASP.NET Core 3

I am trying to use breeze sharp with Blazor Webassembly. I have been able to recompile breeze sharp for .Net Standard 2.0 and 2.1 that has shown positive results reading data from the server. However when trying to load Metadata from script I have…
Amour Rashid
  • 290
  • 3
  • 11
0
votes
0 answers

Breeze Loading metadata or entity type on demand

To reduce the size of breeze meta data, we are planning to make entity based meta data. So that each entity meta data will be downloaded from the server on demand. Previously, the metadata was downloaded by breeze(normal behavior) and it works fine…
Vipin V.S
  • 21
  • 1
0
votes
1 answer

Breezesharp EntityQuery with projection fail in Xamarin Release mode

I have this Xamarin Application which works perfect in debug mode(emulator and device). In release mode(device) the application was well until the view with a Activity which a projection query. I removed linker configuration and the code…
0
votes
1 answer

Is it possible to use the .net Breeze Web API in a medium trust server environment?

If not, what are my options? I presume the OData Web API is the next easiest to implement option? The error message: Attempt by security transparent method 'Breeze.ContextProvider.BreezeConfig.get_Instance()' to access security critical method…
Josh
  • 1,876
  • 3
  • 21
  • 35
0
votes
1 answer

Assign Breeze.Entity to a TypeScript defined class

Don't get too caught up in the Breeze syntax, but "createEntity" correctly returns a type of breeze.Entity. Why is TypeScript not allowing me to assign that returned object to "instance", which is of type myClass, which implements the breeze.Entity…
Josh
  • 1,876
  • 3
  • 21
  • 35