Skip to content

Implementing Simple Cache for CodeSmith and NetTiers (ASP.NET 2.0)

Updated: at 11:17 PM

In this article, I will show a simple way to implement Cache for a GetData type call in the SqlClient layer of the generated code. I won't go through all the details of getting to this point but will show the code and briefly explain how it works. I'm new to CodeSmith so I'm sure there is a better way to solve this problem, but for now, this is one technique that works.

Just to give a lay of the land, my project is called peterkellnerblog and it has several subprojects that each create their own dll's. They are: