breeze

breeze: sorting by navigation property fails with NHibernate and WebAPI 2

感情迁移 提交于 2019-12-24 16:29:58
问题 If I try to sort my entities by navigation property, I get the following error: "'NHibernate.Linq.NhQueryable<CdT.EAI.Business.Entities.Request>' does not contain a definition for 'Include'" The ODATA query is: Requests?$orderby=Client%2FName&$top=10&$expand=Client&$inlinecount=allpages Where Client is a navigation property of the Request entity, and Client.Name is the property displayed in the grid I'm trying to sort. I use the latest version of breeze (1.4.7) Can you confirm the problem ?

how does Breeze saves empty strings

只愿长相守 提交于 2019-12-24 14:24:46
问题 I am retrieving an entity from the database with some proprieties. One of the proprieties is not allowed to be not null string in the database. Even though is not null it can be an empty string "" . In the EF mappings the propriety is validated like: this.Property(t => t.ColumnName) .IsRequired() .HasMaxLength(50); The problem is that when I am trying to save the changes with Breeze it returns an error for the elements that have the propriety ColumnName equal to an empty string.(saying

Why am I getting a TypeError when querying through breeze during a compose in durandal?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 11:42:42
问题 I'm getting the following error from breeze and q.js when my view and model are being bound by a compose binding statement using durandal. I wrote the view in question in isolation and it works great until I try to do a compose binding with it, it throws this error. I tried moving all the custom properties from my entity constructor function to the initializer and also defering evalution of my computed's but that did nothing to thwart the error. I'm not sure which framework is causing this

Errors when using Breeze with EF

我的梦境 提交于 2019-12-24 10:57:18
问题 I am using breezejs with EF. My Web API is returning an "object" consisting of properties from a number of linked entities which I use to bind to a grid. I will need to update some of the properties later and I want to cache the data , hence breeze. I am using the noDB sample to create a custom Entity. The first problem is that breeze seems to expect a property called name to be passed in the addEntityType method or it throws an error The 'structuralTypeName' parameter must be a 'string'. The

Nuget Breeze Server for Web API 2.0 install error

空扰寡人 提交于 2019-12-24 10:46:35
问题 I'm getting the following error while installing the Breeze Server for Web API 2.0. Updating 'Microsoft.AspNet.WebApi.Core 5.2.0' to 'Microsoft.AspNet.WebApi.Core 5.1.0' failed. Unable to find a version of 'Microsoft.AspNet.WebApi.WebHost' that is compatible with 'Microsoft.AspNet.WebApi.Core 5.1.0'. Any help is appreciated. 回答1: I had similar issue with Visual Studio 2013 Update 3. Installed Microsoft.AspNet.WebApi.OData first and Breeze.Server.WebApi2 both via NuGet That issue did not

New Breeze 1.4.9 - Duplicate entity - possible bug?

旧街凉风 提交于 2019-12-24 09:25:59
问题 This problem started appearing after I upgraded to Breeze 1.4.9. I have the following entity: public class ProjectMember { public int ProjectId { get; set; } [ForeignKey("ProjectId")] [InverseProperty("ProjectMembers")] public Project Project { get; set; } public int TeamMemberId { get; set; } [ForeignKey("TeamMemberId")] [InverseProperty("ProjectMembers")] public TeamMember TeamMember { get; set; } } And its configuration: public class ProjectMemberConfiguration : EntityTypeConfiguration

Breeze,js error Collection navigation properties may NOT be set

∥☆過路亽.° 提交于 2019-12-24 08:57:25
问题 I am receiving the this error when i try to add a new object to the navigation Collection navigation properties may NOT be set. This is my POCO: public class Category : BaseEntity,IDeletable { public Category() { Products = new List<Product>(); ChildCategories = new List<Category>(); } [Required] [Display(ResourceType = typeof(DelkaShop.Entities.EntityText.EntityText), Name = "EntityName")] public String Name { get; set; } [Display(ResourceType = typeof(DelkaShop.Entities.EntityText

Is it possible to cancel Breeze requests (AngularJS)?

巧了我就是萌 提交于 2019-12-24 05:49:54
问题 I'm trying to find a way to cancel BreezeJS queries for the purpose of implementing a live search that queries BreezeJS on keypress (see my other question). I know that in Angular, $http requests can be cancelled by passing a promise to the timeout parameter in the config object, and then calling resolve() on that promise. I also know that I can get BreezeJS to use my module's $http insance with: var ajax = breeze.config.initializeAdapterInstance('ajax', 'angular'); ajax.setHttp($http); So I

Preserving asynchronous query order in Breeze/Angular

强颜欢笑 提交于 2019-12-24 03:18:10
问题 I'm using BreezeJS to handle server-side filtering of an ng-grid. To do this, I'm just $watch 'ing for changes to the ng-grid filter, and refreshing my data with BreezeJS. If I type fast enough though, the AJAX queries can end up coming back out of order. I was thinking about associating a GUID with each query (via closure), and keeping track of the GUID of the last query request that was made. Then ignoring any queries that returned that didn't match that GUID (I don't need outdated query

Maximum call stack exccedwith using KendoUI grid and breeze.js

烈酒焚心 提交于 2019-12-24 02:38:12
问题 I'm facing a problem to integrate breeze.js and kenoui grid . I have an observable array in my view model , I fill this array calling ajax operation . when I wire the array to the grid I get an exception "Maximum call stack exceeded" . I read a post that the grid has a problem with the entityacpect inside breeze.js entity. Is there any hot fix for this problem , or any other suggestion. Thanks in advance ... 回答1: This is a standard circular reference javascript serialization issue. It is not