I’ve been using WCF RIA-Services to pass data retrieved via Stored Procedure/EF 4 to a Silverlight 4 application. The system is based on an existing system and a lot of the legwork is already done in Stored Procedures so I was required to re-use them. To start with, I imported my stored procedures to my [...]
Posts Tagged ‘WCF RIA Services’
Stored Procedures with Entity Framework 4 and RIA Services
Posted: 1st October 2010 by thegrayzone in DevelopmentTags: C#, Entity Framework, WCF RIA Services
Returning string[] from RIA Domain Service
Posted: 10th August 2010 by thegrayzone in DevelopmentTags: Domain Services, WCF RIA Services
I added a new method to my Domain Service today that has the signature: public string[] GetSomething(string param1) When I tried to compile this I got the following error, without any line or column information in Visual Studio’s Error List: Type ‘String’ is not a valid entity type. Entity types cannot be a primitive type [...]
Abstract class to dynamically alter EntityFramework Domain Service connection
Posted: 24th June 2010 by thegrayzone in DevelopmentTags: C#, Entity Framework, reflection, WCF RIA Services
In my previous post I wrote about overriding the LinqToEntitiesDomainService.CreateObjectContext() method to dynamically set the connection string for the used by the domain service. I realised that I would be using this in a couple of different services in my current project and potentially use it in the future so I wrote a generic abstract [...]
Dynamically alter EntityFramework ConnectionString in Domain Service
Posted: 8th June 2010 by thegrayzone in DevelopmentTags: Entity Framework, Silverlight, WCF RIA Services
The Problem One of the requirements for a Silverlight 4/WCF RIA Service application that I am working on is that the connection string is stored encrypted within the web.config file. This left me with the problem that I would need to somehow unencrypt the connection string and manually set it before any database interaction was [...]