wcf-ria-services

How to ensure all properties have loaded in Silverlight ViewModel pattern (Concurrency Control?)

早过忘川 提交于 2020-02-02 15:59:47
问题 I am struggling with a seemingly small but quite a painful predicament. I have a an object which acts as a view model to a control. The underlying View Model is designed to help display a list of Group objects and their related Event (s) OUT OF ALL AVAILABLE EVENTS . In the underlying data model I have the following entities (EF) and their corresponding relationships: Group -> GroupEvent <- Event The view model has two observable collections - one for events and one for groups. The events

How to override Silvelright 4 RIA Service AuthenticationService User.IsInRole

半腔热情 提交于 2020-01-25 13:11:28
问题 I've started out with the Silverlight 4 Navigation Application template (RIA Services enabled). (As I really don't like the bloated Business Application Template) I've added an Authentication Service and I'm able to authenticate users, but want to override the User.IsInRole method. WebContext.Current.User.IsInRole("Guest"); But I cannot find any place to override the behaviour. 回答1: What are you trying to do? User.IsInRole is an implementation of IPrincipal.IsInRole and really shouldn't be

RIAServices unsupported types on hand-built DomainService

Deadly 提交于 2020-01-23 21:12:54
问题 My EF model was generated from my SQL Server database. I then generated a DomainService for RIAServices against the EF model. One of the entities is called "EntryCategories". The DomainService created this method: public IQueryable<EntryCategories> GetEntryCategoriesSet() { return this.Context.EntryCategoriesSet; } Since my user interface display model looks quite different from the physical model, I decided to write my own DomainService for that and related entities. Yes, I know we are meant

RIAServices unsupported types on hand-built DomainService

淺唱寂寞╮ 提交于 2020-01-23 21:12:41
问题 My EF model was generated from my SQL Server database. I then generated a DomainService for RIAServices against the EF model. One of the entities is called "EntryCategories". The DomainService created this method: public IQueryable<EntryCategories> GetEntryCategoriesSet() { return this.Context.EntryCategoriesSet; } Since my user interface display model looks quite different from the physical model, I decided to write my own DomainService for that and related entities. Yes, I know we are meant

Polling Pattern for Silverlight 4 WCF Ria Services

两盒软妹~` 提交于 2020-01-23 10:57:06
问题 I am creating an application in Silverlight using Ria Services that can take quite a bit of time once the service call is initiated. I've looked for ways to increase the WCF service timeout, but the more I think it through, this is not the right aproach. What I would rather do is call the DomainContext and return right away, then have the client poll the server to find out when the long running query is complete. I'm looking for a pattern or example of a good way to implement something like

“Read-Only” Entity Framework? I'm trying to use RIA Services, EF, and Silverlight

和自甴很熟 提交于 2020-01-14 04:14:18
问题 I'm trying to present MySQL server data in a silverlight client and my current plan of attack is to use Entity Framework to MySQL with RIA Services providing the data access between the Silverlight Client and Entity Framework. However, I'm only trying to present data to the user and I do not want the possibility of me or someone else being able to change the data in MySQL. In short, I wish there was a way to simply ignore the setters for all entity types. I only want getters. I want "read

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

坚强是说给别人听的谎言 提交于 2020-01-13 10:05:02
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

点点圈 提交于 2020-01-13 10:04:26
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

夙愿已清 提交于 2020-01-13 10:04:16
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

Best resources to learn WCF RIA Services

寵の児 提交于 2020-01-12 05:45:09
问题 What books, videos, articles are you looking at to learn how to use the newly released [WCF RIA Services][1] for Silverlight? 回答1: The starting point would be http://www.silverlight.net/getstarted/riaservices/ Sample code: http://code.msdn.microsoft.com/RiaServices 回答2: This is a great training course with guided labs about WCF RIA Services with Silverlight 4: http://channel9.msdn.com/learn/courses/Silverlight4/ 回答3: EDIT: I will continue to update this list with community answers. Please let