Tag Archives: .net

WCSF and VS2010

Guidance Automation isn’t supported yet in Visual Studio 2010 beta 2 and this sucks (my apologies for using this word). In a project we’re currently working on we’re using Entity Framework and the Web Client Software Factory and I would … Continue reading

Posted in .NET | Tagged , , , | Leave a comment

Web Client Software Factory (WCSF) – reusing views PART 2

Here is my solution for the problem explained in the previous post. So the problem was, how can you reuse views (aspx pages) in different controllers (processes, pageflows, … whatever you want to call them)? I’m still using the standard … Continue reading

Posted in architecture | Tagged , | Leave a comment

Web Client Software Factory (WCSF) – reusing views

This is a compilation of my comments on the blog of Simon Ince concerning reusing views in the WCSF framwork. If there are more comments posted I will also update this article. Please feel free to share your ideas as … Continue reading

Posted in architecture | Tagged , | Leave a comment

LINQ to SQL – mapping multiple resultsets to the same type

Apparantly LINQ to SQL doesn’t really support mapping multiple resultsets to the same .net type. My situation is like this:The stored procedure returns 4 resultsets and I want to map the first 3 sets to the same .net type. Those … Continue reading

Posted in .NET | Tagged , | Leave a comment

WCF Routing

As a little experiment I’ve been playing with a WCF router. Basically a router will accept any request on a certain binding and forward the request to the real service. There are quite some examples available on the internet but … Continue reading

Posted in WCF | Tagged , | 1 Comment

BackgroundWorker in different AppDomain not synchronizing with main thread

One of my projects is creating an application framework and this consists of several libraries with "tools", base UI elements (forms, controls…) and a "hosting" application. In the near future I will probably dedicate one or more articles about this … Continue reading

Posted in .NET | Tagged | Leave a comment

ServiceFacadeExecuter: Minimize the code in your service

When you write the code for your (WCF) service you’ll probably find yourself writing the same code for every method for every service. It might look a bit like this (simplified): public List<Contact> GetContacts(SomeInput input) { // log usage of … Continue reading

Posted in .NET | Tagged | Leave a comment

Use your WCF proxies in a safe way

In a lot of WCF examples you’ll see that the proxy is called in a using statement, this is actually not the best or safest way to call your proxy. When you write using (ServiceProxy proxy = new ServiceProxy()) { … Continue reading

Posted in WCF | Tagged , | Leave a comment

Generics and covariance/contravariance

Today I was writing code that looks like this: public interface IChild<TParent>{} public class GenericSet<TChild>    where TChild : IChild<GenericSet<TChild>>{} public class SpecificSet : GenericSet<ChildClass>{}    public class ChildClass : IChild<SpecificSet>{} If you try to compile this you’ll get the following compiler … Continue reading

Posted in .NET | Tagged | Leave a comment

DataView vs DataTable.Select

This week I was working on some performance issues in an application and encountered a big difference between filtering data from a DataTable using a DataView or the DataTable.Select method. The application I’m talking about could be retrieving 40000 rows … Continue reading

Posted in .NET | Tagged | Leave a comment