MSDN Code Clips showing SAP R/3 data access in .NET applications

I have created some code clips (in German language) for Microsoft MSDN to show how to access SAP data in .NET using LINQ to SAP from Theobald Software. The clips will show how to display SAP data in Silverlight using ADO.NET Data Services and LINQ to SAP. You may visit the website and search for SAP or just click the following links:

Code Clip #1 – SAP access with LINQ to SAP

Code Clip #2 – SAP webservice via ADO.NET Data Services

Code Clip #3 – SAP data access in Silverlight using webservices


I wrote an article about LINQ to SAP at, a new LINQ provider I developed for the company Theobald Software GmbH in Stuttgart, Germany. This provider allows you to easily connect to SAP/R3 systems using the LINQ technology and a Visual Studio 2008 Designer. LINQ to SAP is part of the ERPConnect software suite that interconnects SAP/R3 systems with .NET. You can find more details here.

Creating Custom Windows Authentication Roles In ASP.NET

A while ago one of my customer asked me to extend the Windows authentication process within an ASP.NET intranet application. The custom roles for the authenticated users should be determined by querying special flags in a database table and by querying the Active Directory for that user.

One way to accomplish this task is to create a custom class which derives from WindowsPrincipal called RolesWindowsPrincipal. The new class extends the existing class with methods to add new roles depending on the queries described above.

The implementation is quite simple:

public class RolesWindowsPrincipal : WindowsPrincipal
List _roles;

public RolesWindowsPrincipal(WindowsIdentity identity) : base(identity)
_roles=new List();

public override bool IsInRole(string role)
return _roles.Contains(role);

public void AddRole(string role)