breeze

Flter expanded table with breeze

只愿长相守 提交于 2019-12-25 04:48:06
问题 I am using in my project angular, breeze, WebApi, EF, SqlServer2008. I have table Articles and table ArticleComments, So one article can have many articleComments records. public class Article{ public int ArticleId { get; set; } public string ArticleName { get; set; } public string Description { get; set; } public ICollection<ArticleComment> Comments { get; set; } public ICollection<ArticleImage> ImagesList { get; set; } ... } public class ArticleComment { public int ArticleCommentId { get;

Adding Navigation property breaks breeze client-side mappings (but not Server Side EF6)

故事扮演 提交于 2019-12-25 04:12:04
问题 I have an application that I developed standalone and now am trying to integrate into a much larger model. Currently, on the server side, there are 11 tables and an average of three navigation properties per table. This is working well and stable. The larger model has 55 entities and 180+ relationships and includes most of my model (less the relationships to tables in the larger model). Once integrated, a very strange thing happens: the server sends the same data, the same number of entities

Is it a good practice to use multuple

主宰稳场 提交于 2019-12-25 04:09:54
问题 I'm quite new to breeze. In our application, we have multiple repositories and one breeze API controller to handle the communication. However, since the application is large, the breeze controller is separated in to several partial classes, separating concerns. For example, we have related repositories to handle Location, Holiday and Service entities, and to make communications related to these entities we use one partial class controller. And several others for the other repositories. /

Using Angular with breeze and require

不羁的心 提交于 2019-12-25 03:41:16
问题 i am trying to use angular with breeze and requireJS how ever i am getting error of Uncaught Error: Module name "ko" has not been loaded yet for context: _. Use require([]) i have configured define("breezeConfig", ["breeze"], function(breeze) { // configure to use the model library for Angular //breeze.config.initializeAdapterInstance({ dataService: "OData" }); breeze.config.initializeAdapterInstance("modelLibrary", "backingStore", true); // configure to use camelCase breeze.NamingConvention

Angular Breeze one-many-one example with checkbox

吃可爱长大的小学妹 提交于 2019-12-25 02:38:04
问题 I have implemented domain models using Breeze's recommended one-many-one approach, and would like to assign these relationship using a checkbox approach. I'm using Angular for my data-binding, so this would be via the ngChecked directive. I was wondering if anyone has attempted something similar and is able to post code snippets for getting, creating and deleting the one-many-one relationship, both at a controller and data service level. I'm about to start on the requirement, and will gladly

With BreezeJs how do you handle updating cache for user1 after user2 has made changes?

六眼飞鱼酱① 提交于 2019-12-25 02:25:50
问题 Trying to find the proper solution for breezejs, if user1/device1 has a cached list of projects and user2/device2 updates one of those records, user1 still sees stale data unless they manually refresh. What are the solutions to make sure User1 gets the new upated data? Is there something I can do on save of entity to remove it from everyone's cache? Is the cache based per user? 回答1: The Breeze EntityManager cache is a client side cache, so each user/device/application will have its own data.

How to use Breeze with multiple Entity Framework Contexts

帅比萌擦擦* 提交于 2019-12-25 00:18:49
问题 Is it possible or practical to get a single Breeze controller to work with multiple EF contexts? Each context has a different data model. Or, is it possible to have a single Breeze client use two different Breeze controllers? 回答1: Both are possible. Both are common. Usually you would have one-EF-Context-per-controller. That is certainly the easy path (but not the only possible path!). On the client, you could treat these as distinct "data services". Something like the following in the two

Navigation property no more working after migration of breeze 1.4.2

人走茶凉 提交于 2019-12-24 19:06:33
问题 I work with asp.net mvc with Durandal & breeze templates. I have the following code-first classes: 1st scenario: public class Transport { [Key] public int Id { get; set; } ... public int? SenderId { get; set; } public virtual SendRecv Sender { get; set; } } public class SendRecv { [Key] public int Id { get; set; } ... public virtual List<Transport> Transports { get; set; } } Then I can easily get all my related transports from my observable of type SendRecv : if (sendRecvs()[i].transports()

Possible Bug: Breeze.js 1.5 — Cannot write a value to a ko.computed unless you specify a 'write' option

爱⌒轻易说出口 提交于 2019-12-24 17:23:21
问题 I think I found a bug... Just updated to the new Breeze.JS v1.5 and now I'm getting the following error: Error: Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters. at dependentObservable (http://localhost:54663/Scripts/knockout-3.2.0.debug.js:1712:17) at setDpValueSimple (http://localhost:54663/Scripts/breeze.debug.js:5083:5) at defaultPropertyInterceptor (http://localhost:54663/Scripts/breeze.debug.js

Breeze work-around for multi valued property queries

最后都变了- 提交于 2019-12-24 16:42:27
问题 I'm trying to assemble ad-hoc queries to Breeze. I have a physician.contact.addresses relationship. When I try: myPred = new pred('contact.addresses.street1', op.StartsWith, "a"); And execute it I get: "The parent value for a property access of a property 'Addresses' is not a single value. Property access can only be applied to a single value." To try a work-around I've tried parsing out those many-relationships and am passing it to the breeze controller in .withParameters like this: var