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 [...]
Archive for June, 2010
Abstract class to dynamically alter EntityFramework Domain Service connection
Posted: 24th June 2010 by thegrayzone in DevelopmentTags: C#, Entity Framework, reflection, WCF RIA Services
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 [...]
VB.NET Object Initializer and single line If statements
Posted: 4th June 2010 by thegrayzone in DevelopmentTags: C#, VB.NET
I’ve recently started working at a company that has quite a few VB.NET application sitting around, and as you can see from the rest of my posts I’m used to using C# A couple of C# language features that I use a lot are Object Initializers and single line if statements. This might be old [...]
Setting maximum object size in WCF
Posted: 2nd June 2010 by thegrayzone in DevelopmentTags: Silverlight, WCF
I have recently been working on a Silverlight application that uses WCF for all data access functions. The application worked fine on my development machine but when I moved it over to a test environment I received the following, rather vague, error when making a few of the database calls: “The remote server returned an [...]