ria-services

Linq to SQL vs Entity Data Model: Getting a stored proc to run

Was I was previously messing with Silverlight and RIA, I was using a an ADO.NET Entity Data Model and domain context. I'm teaching myself how to run a stored procedure from RIA, and could not get it to work with the previous setup so I then started to try out using the LINQ to SQL method. I did the following: Added the DBML Drag and d...

Quick questions about updating code from RIA Services July Preview to RIA Services 1.0

I don't have much experience on the web services / database abstraction layer side of things for Silverlight, and am caught on an aspect of my porting effort. There was a core C# developer on the project that is no longer involved, and I'm working with code that he wrote. I'm updating code on a SL3 project with the RIA Services preview ...

Exposing custom server-side Entity Framework properties on the client side

I'm making a Silverlight 4 application with WCF RIA Services. On the server side (the *.Web project), I have an Entity Model that's auto-generated from a SQL Server database. On the client side, I have the domain service and proxy objects that are generated by Visual Studio for use in Silverlight assemblies. I want to add custom proper...

Silverlight 4: Running a stored procedure which returns a string

I have a problem executing a stored procedure in Silverlight 4/RIA. The only value I get back is null. Am I doing my client and server side code wrong? Client Side : public ZipCodesDomainContext _ZipcodesDomainContext = new ZipCodesDomainContext(); /// <summary> /// Creates a new <see cref="MainPage"/> instance. ...

Accessing current DomainContext from Entity on client side

I'm extending a partial class that was generated from an Entity Framework domain service (it inherits from System.ServiceModel.DomainServices.Client.Entity). In a property in this class, I want to be able to access a complete entity set from my DomainContext and run a query on it. From within the * : Entity class, is there any good way...

RIA Services - Silverlight 4.0 - Accessing entities from code

Hello, I have strange situation I have simple project to test RIA functionality in Silverlight 4.0. When I use data source for Domain Service it works great but when I want to access Context from code and execute simple query I returns 0 rows. //test One with query provided to DataSource var q = ctx.GetDoctorsWithPatientsAndHospitalQu...

RIA Services and SSL by configuration?

According to this I need to set an attribute in code to get SSL encryption for my RIA service calls. Is there no way to do this with a configuration file? (I currently use Visual Studio 2008 and Silverlight 3.) ...

Expose a object via Ria Services that implements an interface

Hi, A question about using interfaces on presentationModels with RIA services. It is possible to expose a object via Ria Services that implements an interface? The interface: public interface TestInterface { public int ID {get;set;} } We have a presentationModel : public class TestPresentationModel : TestInterface { [Key]...

How to override Silvelright 4 RIA Service AuthenticationService User.IsInRole

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 cann...

Where is System.ServiceModel.DomainServices.EntityFramework DLL?

Hello, I'm trying to use RIA services, I installed Silverlight 4 and Silverlight 4 Tools/SDK, but I cannot setup a LINQToEntitiesDomainService because I can't find this namespace/assembly: System.ServiceModel.DomainServices.EntityFramework. Where does this assembly come from, not sure why it's missing? Is that an add-on I'm missing? ...

RIA services - is filtering done at the server or client?

Lets say I have some code like: ExampleDomainContext ctx = new ExampleDomainContext(); var query = from p in ctx.GetPeopleQuery() where p.Id > 2 select p; ctx.Load<Person>(query).Completed += (s, e) => { // do some stuff }; This is being done on the client, and the GetPeopleQuery() call from the RIA servi...

RIA-Services - how to WhereOr or use an IN style construct

I am using SL 4, WCF RIA Services against Entity Framework 4.0. I have an Entity, Visit, that has a string Status field. I have a search screen where I need to display results that have StatusA or StatusB. I am struggling to find a way to specify a client-side query that specifies a collection of statuses that should be matched. If I was...

RIA Services and MVVM loading, a question about querying data (separating data)

First of all, sorry for the bad title, I can only describe the problem Let's say the database on the server has a table/type called Tasks and these tasks can be owned by a user and assigned to a user. SomeTask.Owner = SomeUser SomeTask.Assignee = SomeOtherUser In the server some additional queries are defined: public IQueryable<Task...

RIA with Code First EF - Validating a new entity

My problem is that when I add a new entity with a required field, the entity doesn't show the validation error in the UI. I'm using using EF CTP4 Code First. My setup : I have an entity. public class Category { [Key] public int Id { get; set; } [Required] public string Name { get; set; } public string ImageUrl ...

Deployment of Silverlight RIA Services Application

Testing on local Web Development Server and running the application in shared hosting environment differs a lot. What are the best steps to deploy a Silverlight RIA Services Application on a shared hosting environment? ...

LightSwitch vs RIA

I've just found out about Visual Studio LightSwitch, Microsoft's new Silverlight-centric RAD tool. Does this occupy the same space as RIA Services? Is RIA effectively dead? ...

RIA Services and the BLL

I'm currently looking at RIA services, in order to speed development of Silverlight enterprise applications. It's clever and powerful, but it seems to me that you are invariably going to collapse your business logic into the presentation layer. Is there any place for a classic BLL (business logic layer) when using RIA? Update: Did some ...

RIA Services - call a stored procedure

I am using RIA Services with Silverlight and Entity Framework. I want to call a stored procedure and map the results to a datagrid. What is the best way to do this? The output of the stored procedure doesn't map to any table design. I found the following article - http://blogs.msdn.com/b/tom/archive/2009/05/07/silverlight-ria-calling-...

How do I make Message targets be the only recipent of a targeted Message?

Hello Stack Overflow! First time poster. I'm using MVVM-Light with Silverlight 4 and RIA Services. This has been a learning experience! But so far, it's working beautifully. I was wondering two things. Right now, I'm using the Messenger framework to pass EntityObjects back to the ViewModel. For instance, I need to open a View Model wit...

Adding custom property to object returned from WCF RIA Services

I have a stored procedure in my Entity Framework Model. I've added a Function Import and mapped the results to a Complex Type. I want to add an extra property to this Complex type, that I'll populate in my Domain Service, not coming back from the stored procedure. I added a myClass.shared.cs file and implemented added the property lik...