breeze

breezejs v1.3.6 breaks my application

假装没事ソ 提交于 2019-12-25 12:52:36
问题 I've updated my client library and server web api dll to latest version. Now whenever I do an expand on a query, I get that kind of error: unable to locate property: Mandate on type: MandateHistory:#Dom.DirectDebit with the query being : var query = breeze.EntityQuery.from("MandatesHistory") .where("Mandate.Id", "==", mandatId).expand("Mandate"); return manager.executeQuery(query.using(service)); If I downgrade to 1.3.3 (the client library only), everything works fine. I would have like to

breezejs v1.3.6 breaks my application

跟風遠走 提交于 2019-12-25 12:52:03
问题 I've updated my client library and server web api dll to latest version. Now whenever I do an expand on a query, I get that kind of error: unable to locate property: Mandate on type: MandateHistory:#Dom.DirectDebit with the query being : var query = breeze.EntityQuery.from("MandatesHistory") .where("Mandate.Id", "==", mandatId).expand("Mandate"); return manager.executeQuery(query.using(service)); If I downgrade to 1.3.3 (the client library only), everything works fine. I would have like to

BreezeJs loading metadata 5 times on the page, trying to use fetchMetaData but it errors

…衆ロ難τιáo~ 提交于 2019-12-25 09:05:29
问题 I am trying to get the metadata before I perform any queries on the page, because each query is trying to get the metadata for a total of 5 times and the page is very slow. I am hoping this helps. //version info: var breeze = { version: "1.5.4", metadataVersion: "1.0.5" }; Howevever I am getting this error: manager.fetchMetadata(...).then(...).fail is not a function Here is the code sample: var manager = emProvider.createManager(); function getMetaData() { var deferred = $q.defer(); manager

Breeze going faster than the shell togglespinner

怎甘沉沦 提交于 2019-12-25 07:59:42
问题 Hi all, My environment : vwd 2013, sql server 2012, project template : Hot towel - Angular (by John Papa), BreezeJs, Breeze.WebApi2, Breeze.ContextProvider.EF6, Entity-Framework ADO .Net 6 . I'm making a little Web app SPA, everything used to work correctly as long as I instanciate a new BreezeManager before every Web API call with entityManagerFactory, all the web api calls are done in 2 services datacontext and authenticationservice (of my own development). Then I discover that app was

Breeze.js audit log

﹥>﹥吖頭↗ 提交于 2019-12-25 07:33:26
问题 We are using breeze.js on client side for data access layer over entity framework. We need to maintain the audit log for all the data changes on server. Can somebody please advise what could be the best way to do that? 回答1: The two options that occur to me are either 1) Server side triggers 2) Use the Breeze beforeSaveEntities mechanism to intercept the Breeze saveChanges call and add audit records directly in code on the server. 来源: https://stackoverflow.com/questions/17580440/breeze-js

How to get BreezeJS to talk to MySQL DB with Angular + Node?

≯℡__Kan透↙ 提交于 2019-12-25 07:29:53
问题 Stack: MySQL + Express + Angular + Node and node-mysql to talk to the DB. EDIT: I'm connectiong to a local DB and the connection works. I can't get Breeze to communicate with it. I'm trying to get the Breeze Todo app to work with this setup but I'm getting a localhost:3000/ToDos? 404 (Not Found) when Breeze goes out to get the data. Do I need to create the API for Breeze to talk to? I've tried this: angular.module('mysql', ['ngResource']). factory('ToDos', function($resource) { var ToDos =

How to prevent or allow json serialization of a property from breeze controller

邮差的信 提交于 2019-12-25 07:16:27
问题 So it happens that you can prevent breeze json serialization of some properties using data annotations on your model by like this(well if you are using EF6 with JSON.NET on the backend)... [Table("Project")] public partial class Project { public Project() { } public int id { get; set; } [JsonIgnore] public bool NoLongerExist { get; set; } } By doing so the property becomes invisible on this endpoint used by breeze public IQueryable<Project> Projects() { return _db.Context.Projects.Where(o =>

BreezeManager doesn't track changes with extended properties

爷,独闯天下 提交于 2019-12-25 07:08:31
问题 I extended my server entity with some properties in the client side . When getting data from the query I really see these properties in the result filled with the proper values . When I change a value of an extended properties the manager doesn't track this change . When I call manager.rejectChanges() no action is happen , I debugged the code and I see in the entityAspect.entityState ("Unchaged") although I modified the property. If I modify a property comes from the server entity every thing

Breeze is trying to update a computed database column

旧街凉风 提交于 2019-12-25 06:34:06
问题 A friend reported a problem with a computed column, Entity Framework, and Breeze We have a table with a "FullName" column computed by the database. When creating a new Person , Breeze sends the FullName property value to the server, even though it’s not being set at all, and that triggers an error when trying to insert the new Person instance. The database throws this exception: The column "FullName" cannot be modified because it is either a computed column or is the result of a UNION

Exception when trying Breeze.js example in version 1.0.1

。_饼干妹妹 提交于 2019-12-25 05:23:48
问题 I'm attempting to try out Breeze.js and have downloaded the latest nugget package for the MVC sample. However, every time I try to save data an exception is thrown in the SaveChanges action in the BreezeSampleController of: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'entities' The library looks great and I would like to make sure I have the most stable bits. 回答1: Quoting KS: "t turned out the problem was that the Newtonsoft.Json assembly was installed in the GAC by