Click here to Skip to main content
15,888,527 members
Articles / Database Development / SQL Server

Flexible and Plug-in-based .NET Application using Provider Pattern

,
Rate me:
Please Sign up or sign in to vote.
4.67/5 (26 votes)
1 Dec 200511 min read 111.7K   1.2K   161  
This paper demonstrates creating a flexible, extensible, plug-in-based .NET application (JOM - Smart Job Manager). JOM is an asynchronous job processing engine built using the MS Provider design pattern and the .NET technology available today.
// =====================================================================================
// Copyright © 2005 by Shahed Khan. All rights are reserved.
// 
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
//
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
// 
// website , email shahed.khan@gmail.com
// =====================================================================================


	
/*
	Code Generated by a tool.
	Tuesday, 6 September 2005
	Do not modify, edit the file JobDetail.cs instead.
*/
using System;
using System.ComponentModel;
using System.Collections;
using System.Xml.Serialization;

namespace SmartJobManager
{
	
	
	///<summary>
	/// An object representation of the 'JobDetail' table.
	///</summary>
	/// <remarks>
	/// This class is generated by a tool and should never be modified.
    /// All custom implementations should be done in the <see cref="JobDetail"/> class.
    /// </remarks>
	[Serializable]
	public class JobDetailBase : IEntity
	{
		
		#region "Variable Declarations"
		
		/// <summary>
		/// ID : 
		/// </summary>
		protected System.Int32		  _ID = (int)0;
		
		/// <summary>
		/// JobID : 
		/// </summary>
		protected System.Int32		  _JobID = (int)0;
		
		/// <summary>
		/// ElementDesc : 
		/// </summary>
		protected System.String		  _ElementDesc = string.Empty;
		
		/// <summary>
		/// ElementDataType : 
		/// </summary>
		protected System.Object		  _ElementData = new object();
		
		
		
		
		
		#endregion "Variable Declarations"
		
		
		#region "Constructors"
		///<summary>
		/// Creates a new <see cref="JobDetailBase"/> instance.
		///</summary>
		public JobDetailBase()
		{
		}		
		
		///<summary>
		/// Creates a new <see cref="JobDetailBase"/> instance.
		///</summary>
		///<param name="ID"></param>
		///<param name="JobID"></param>
		///<param name="ElementDesc"></param>
		///<param name="ElementDataType"></param>
		public JobDetailBase(System.Int32 ID, System.Int32 JobID, System.String ElementDesc, System.Object ElementData)
		{
			_ID = ID;
			_JobID = JobID;
			_ElementDesc = ElementDesc;
			_ElementData = ElementData;
		}
				
		#endregion "Constructors"
		
		
		
		#region Properties	
		/// <summary>
		/// 	Gets or Sets the ID property. 
		///		
		/// </summary>
		/// <value>This type is int</value>
		[DescriptionAttribute("")]
		public System.Int32 ID
		{
			get { return _ID; }
			set
			{
				if (_ID == value)
					return;				
				_ID = value;
				
			}
		}
	
		/// <summary>
		/// 	Gets or Sets the JobID property. 
		///		
		/// </summary>
		/// <value>This type is int</value>
		[DescriptionAttribute("")]
		public System.Int32 JobID
		{
			get { return _JobID; }
			set
			{
				if (_JobID == value)
					return;				
				_JobID = value;
				
			}
		}
	
		/// <summary>
		/// 	Gets or Sets the ElementDesc property. 
		///		
		/// </summary>
		/// <value>This type is varchar</value>
		[DescriptionAttribute("")]
		public System.String ElementDesc
		{
			get { return _ElementDesc; }
			set
			{
				if (_ElementDesc == value)
					return;				
				
				_ElementDesc = value;
				
			}
		}
	
		/// <summary>
		/// 	Gets or Sets the ElementDataType property. 
		///		
		/// </summary>
		/// <value>This type is int</value>
		[DescriptionAttribute("")]
		public System.Object ElementData
		{
			get { return _ElementData; }
			set
			{
				if (_ElementData == value)
					return;				
				_ElementData = value;
				
			}
		}
	
	

		private bool _isdeleted = false;
		/// <summary>
		/// 	True if object has been <see cref="MarkToDelete"/>. ReadOnly.
		/// </summary>
		[BrowsableAttribute(false)]
		public bool IsDeleted
		{
			get { return _isdeleted; }
			set { _isdeleted = value; }
		}


		private bool _isdirty = false;
		/// <summary>
		///		Indicates if the object has been modified from its original state.
		/// </summary>
		///<value>True if object has been modified from its original state; otherwise False;</value>
		[BrowsableAttribute(false)]
		public bool IsDirty
		{
			get { return _isdirty; }
			set { _isdirty = value; }
		}
		

		private bool _isnew = false;
		/// <summary>
		///		Indicates if the object is new.
		/// </summary>
		///<value>True if objectis new; otherwise False;</value>
		[BrowsableAttribute(false)]
		public bool IsNew
		{
			get { return _isnew; }
			set { _isnew = value; }
		}

		/// <summary>
		///		The name of the underlying database table.
		/// </summary>
		[BrowsableAttribute(false)]
		public string TableName
		{
			get { return "JobDetail"; }
		}

		
		#endregion
		
		
		///<summary>
		/// Returns a String that represents the current object.
		///</summary>
		public override string ToString()
		{
			return string.Format("{5}{4}- ID: {0}{4}- JobID: {1}{4}- ElementDesc: {2}{4}- ElementData: {3}{4}", ID, JobID, ElementDesc, ElementData.ToString(), Environment.NewLine, this.GetType());
		}
	
	}//End Class
	
	
	/// <summary>
	/// Enumerate the JobDetail columns.
	/// </summary>
	public enum JobDetailColumns
	{
		/// <summary>
		/// ID : 
		/// </summary>
		ID,
		/// <summary>
		/// JobID : 
		/// </summary>
		JobID,
		/// <summary>
		/// ElementDesc : 
		/// </summary>
		ElementDesc,
		/// <summary>
		/// ElementDataType : 
		/// </summary>
		ElementData
	}//End enum

} // end namespace

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
I have been awarded MVP (Visual C#) for year 2007, 2008, 2009. I am a Microsoft Certified Application Developer (C# .Net). I currently live in Melbourne, Australia. I am a co-founder and core developer of Pageflakes www.pageflakes.com and Founder of Simplexhub, a highly experienced software development company based in Melbourne Australia and Dhaka, Bangladesh. Simplexhub.
My BLOG http://www.geekswithblogs.net/shahed
http://msmvps.com/blogs/shahed/Default.aspx.

Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions