Jeff Garoutte

c# .net and anything else that happens across my desk

The Dummy Provider: Testing membership and roles

Asp.net has a wonderful system built in for handling user accounts and roles. The administration interface is encapsulated in a separate web site that can be accessed from within Visual Studio but it is difficult to integrate into the site.  This often leads to building a new user administration area in each site.  The problem I have with this is going into the data store and deleting the incomplete test data and not having "known good" data for testing. In the past, I have talked about... [More]
Posted: Nov 04 2008, 23:32 by jeff | Comments (7) RSS comment feed |
Filed under: Providers | Unit testing
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us

WebService Documentation: Using a custom Site Map

Not long ago I started working on changing the look and feel of the default WebService documentation that is generated by asp.net.  While I demonstrated how to replace the default page template with a custom one I "glossed" over the details of what you can do with it.  By using a custom Sitemap Provider you can create a dynamic Map of all of your WebServices methods.  Please note I am not out to explain SiteMaps in this article.  They list the pages in a site for use by some ... [More]

Beyond Generics, Interfaces, Providers and You : IReadByParentId

Ok so in the Generics, Interfaces, Providers and You series, Part 1, Part 2, Part 3 & Part 4, we made a flexible system of interfaces to make working with a data access provider model easier.  In Part 4, I listed some ideas where there was room for improvement in the interfaces/class that we made.  If you have not read the series yet, go ahead and take a few minutes to read them; this post will not make much sense without it.  So here it is, the IReadByParentId interface(s). Of course we... [More]

Generics, Interfaces, Providers and You - Part 4: Building the Classes

Now that we have our interfaces we need to make some changes to our existing objects.  Back in part 1 we defined an object tree for contact information.  For this example, a 3rd parting marketing system is loading new contact information into our data store and management does not want anyone to delete data, but in a truely pointy hair boss fashion they want people to be able to update the data...  First we will create the ContactInformationProviderRepository.  We make a static Provide... [More]

Generics, Interfaces, Providers and You - Part 3:IProviderCollection & IProviderRepository

In part 1 We talked about the web.config and the basic classes to get started with a provider model.  Part 2 covered the interface for the data object and the Provider.  Now in part 3 we will address the IProviderCollection and the IProviderRepository. Back in part one we added a provider collection to the generic provider repository by taking the provider collection as a generic parameter.  Now we are going to define the ProviderCollection interfaces.  They are going to be ICreateProvi... [More]
Posted: Jul 27 2008, 05:43 by jeff | Comments (0) RSS comment feed |
Filed under: General | Providers
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us

Generics, Interfaces, Providers and You - Part 2:IDataObject & IProvider

In part 1 we covered the web.config changes and the classes needed to use them.  We also created a ProvidersRepositoryGeneric class to load and manage providers.  But what good is a repository of providers if there is nothing to provide?  While the Provider model can be used for other things aside from data operations, this series is focusing on data access.  If you need a moment to go back and read Generics, Interfaces, Providers and You - Part 1:Getting Started feel free, we will be he... [More]
Posted: Jul 27 2008, 04:22 by jeff | Comments (2) RSS comment feed |
Filed under: General | Providers
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us

Generics, Interfaces, Providers and You - Part 1:Getting Started

There are many uses for providers with accessing a data store being one of the most common.  I'm not going to talk about why to use providers, I am going to address how to use generics and interfaces with providers to make using them a bit easier. For this series we are going to use a "ContactInformation" object with a few sub-classes, "HomePhoneNumber" and "EmailAddress". using System; using System.Collections.Generic; using System.Text; using ObjectHelpDesk.DataAcc... [More]
Posted: Jul 27 2008, 02:05 by jeff | Comments (2) RSS comment feed |
Filed under: General | Providers
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us