Click here to Skip to main content
15,886,001 members
Articles / Database Development / SQL Server

Armadillo: Unit Testing of inline SQL with a little help from Attributes and Reflection

Rate me:
Please Sign up or sign in to vote.
4.65/5 (23 votes)
28 Nov 2005CPOL13 min read 67.1K   930   58  
This article provides a way for automatically testing SQL embedded in your Data Access Layer (DAL) before publishing a new release of your application.
// (c) Pedro J. Molina, 2005, Spain. http://pjmolina.com
// Feel free to use it and improve it.
using System;

namespace OKOKO.Armadillo.Attributes
{
	/// <summary>
	/// Labels classes that contains DAL Code.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
	public class DalClassAttribute : Attribute
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public DalClassAttribute()
		{
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Icinetic
Spain Spain
Ph.D in Computer Sciences. My research interest is focus on Conceptual Models, Software Engineering, Code Generation, Model Execution, & UI Patterns.
I work for Icinetic, Seville, Spain building http://Radarc.net and other MDD technologies.

Comments and Discussions