wcf-ria-services

Unable to use methods from Domain Service class in WCF Ria?

≡放荡痞女 提交于 2019-12-11 20:39:03
问题 I am trying to build an silverlight application which takes user first name, last name, pass, email address in text boxes and then add these to the database. For this i am using WCF Ria Services . Steps i have followed are : Added ADO.NET Entity Data Model and then Domain Service class in my project (in web part). Now i have got some predefined methods in my DomainService Class like Insert, Update methods. I know how to show data in DataGrid but its not what i want. What i want is to

Why isn't my shared resource file working in my Silverlight RIA project?

浪尽此生 提交于 2019-12-11 14:34:44
问题 I'm working on a Silverlight project with the WCF RIA Services beta. I'm using the BlahDomainService.metadata.cs file to validate a field by adding validation attributes, e.g. [RegularExpression]. It was working so I'm trying to put the Error message in a resource file and now it isn't working. The RegEx validation isn't being run on the client, though it is being run on the server. Any idea what might be causing this? In the generated code file on the client, I see this error: // Unable to

Can .NET Ria service push data from server to client?

萝らか妹 提交于 2019-12-11 11:13:51
问题 Can the .NET RIA Service automatically push data to the silverlight client without the client polling the server at all? I want a feature similiar to wcf duplex polling. 回答1: Not currently. It's something they are thinking about for version2 apparently. You can do it with WCF: .WCF Duplex with Silverlight 来源: https://stackoverflow.com/questions/1659062/can-net-ria-service-push-data-from-server-to-client

Ria Service(Silverlight 4 Tools) in Visual Studio 2012?

ⅰ亾dé卋堺 提交于 2019-12-11 10:58:30
问题 Having Visual Studio 2010 SP1, where everything is fine, I can create Silverlight Unit Test Project, RIA Services Class Library, etc I installed Visual Studio 2012, then I'm creating a RIA Services Class Library when I noticed that don't exist 'Domain Service Class', neither Silverlight Unit Test. What I need to develop RIA Services with Visual Studio 2012? 回答1: The Tools for Silverlight 5 get installed with Visual Studio 2012. May be you need to reinstalled the Tools for Silverlight 4 again.

RIA Services and Inheritance in EF

只谈情不闲聊 提交于 2019-12-11 10:54:48
问题 I have the next EF diagram: Image and the code service: [EnableClientAccess()] public class DomainService1 : LinqToEntitiesDomainService<db1Entities1> { public IQueryable<Entity1> GetMaster1() { return this.Context.Master.OfType<Entity1>(); } public IQueryable<Entity2> GetMaster2() { return this.Context.Master.OfType<Entity2>(); } } In the compile process I have the next errors: Error 1 The type 'TestInheritance.Web.Entity1' already contains a definition for '_typeId' D:\FAUst\SourceExamples

Custom property in RIA service not available on client

*爱你&永不变心* 提交于 2019-12-11 08:35:57
问题 I have an entity called StatusUpdates . There is no self join in it. However i want to include a list of InternalStatusUpdates which is of type StatusUpdates (Again i would mention there is no self join in database). So i created a partial class in the same namespace and created a property named InternalStatusUpdates and included [DataMember] attribute on it. But it still doesn't appear on the client. This is my partial class to be specific :- using System; using System.Collections.Generic;

Windsor IHandlerSelector in RIA Services Visual Studio 2010 Beta2

余生长醉 提交于 2019-12-11 08:34:24
问题 I want to implement multi tenancy using Windsor and i don't know how to handle this situation: i succesfully used this technique in plain ASP.NET MVC projects and thought incorporating in a RIA Services project would be similar. So i used IHandlerSelector, registered some components and wrote an ASP.NET MVC view to verify it works in a plain ASP.NET MVC environment. And it did! Next step was to create a DomainService which got an IRepository injected in the constructor. This service is hosted

DTOs in WCF RIA Services Master-Detail

落花浮王杯 提交于 2019-12-11 07:43:39
问题 I have to make a Master-Detail scenario where in the master I can show many types of items, that they all implement IDto : interface IDto { int Id { get; set; } string Title { get; set; } EntityType { get; set; } enum EntityType { Contact, Person, Company, Customer Employee, Vendor, Job } Note: I am using Entity Framework EDM (generated ObjectContext and EntityObject s). The class hierarchy is that Contact is the subclass for Person and Company , Person is the baseclass of Employee , Company

Load operation failed for query due to data limit

独自空忆成欢 提交于 2019-12-11 07:04:37
问题 We have a silverlight application which interfaces with an RIA service to get a list of contacts to display in a grid, this normally works however we are getting the following error: load operation failed for query x. the remote server returned an error: notfound Tracing this through we have determined it is due to the amount of data that is being passed as it will work if the we pass roughly 3,800 records or less. We need to load at least 15,000 records from the database. I have searched all

WCF RIA : LoadOperation Not Refreshing Data

谁都会走 提交于 2019-12-11 06:56:39
问题 I have the following code: LoadOperation<Clarifications> ClarificationsLP = context.Load(context.GetClearificationsQuery().Where(o => o.ProjectID == ((App)Application.Current).Project.ProjectID).OrderBy(o => o.RaisedOn)); ClearificationsLP.Completed += delegate {//Stuff }; When I execute this statement the second time, it does not pick up new changes from the database?? Any Idea? Thanks, Rick 回答1: Try this: (I broke out the GetClearifictionsQuery just to make the code more clear, it's the