Click here to Skip to main content
15,896,528 members
Articles / Programming Languages / C#

Design and Implementation of an Attribute-Driven, Caching Data Abstraction Layer

Rate me:
Please Sign up or sign in to vote.
4.98/5 (25 votes)
21 Jul 2008CPOL30 min read 68.8K   595   103  
An easy-to-use, attribute-driven data abstraction layer with multi-database support, intelligent caching, transparent encryption, multi-property sorting, property change tracking, etc.
namespace DALSampleApplication
{
	partial class PersonGridControl
	{
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Component Designer generated code

		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.panel2 = new System.Windows.Forms.Panel();
			this.personDataGridView1 = new DALSampleApplication.PersonDataGridView();
			this.FirstName = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.LastName = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.login_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.password = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.personDataGridView1)).BeginInit();
			this.SuspendLayout();
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.personDataGridView1);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(0, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(517, 447);
			this.panel2.TabIndex = 4;
			// 
			// personDataGridView1
			// 
			this.personDataGridView1.BindingSourceControl = null;
			this.personDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.personDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.FirstName,
            this.LastName,
            this.login_name,
            this.password});
			this.personDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.personDataGridView1.LastError = "";
			this.personDataGridView1.Location = new System.Drawing.Point(0, 0);
			this.personDataGridView1.Name = "personDataGridView1";
			this.personDataGridView1.Query = "";
			this.personDataGridView1.RowTemplate.Height = 24;
			this.personDataGridView1.Size = new System.Drawing.Size(517, 447);
			this.personDataGridView1.TabIndex = 1;
			// 
			// FirstName
			// 
			this.FirstName.DataPropertyName = "first_name";
			this.FirstName.HeaderText = "First";
			this.FirstName.Name = "FirstName";
			// 
			// LastName
			// 
			this.LastName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
			this.LastName.DataPropertyName = "last_name";
			this.LastName.HeaderText = "Last Name";
			this.LastName.Name = "LastName";
			// 
			// login_name
			// 
			this.login_name.DataPropertyName = "LoginName";
			this.login_name.HeaderText = "Login";
			this.login_name.Name = "login_name";
			this.login_name.ReadOnly = true;
			this.login_name.Width = 70;
			// 
			// password
			// 
			this.password.DataPropertyName = "Password";
			this.password.HeaderText = "Password";
			this.password.Name = "password";
			this.password.ReadOnly = true;
			this.password.Width = 70;
			// 
			// PersonGridControl
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.panel2);
			this.Name = "PersonGridControl";
			this.Size = new System.Drawing.Size(517, 447);
			this.Load += new System.EventHandler(this.PersonGridControl_Load);
			this.panel2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.personDataGridView1)).EndInit();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.Panel panel2;
		public PersonDataGridView personDataGridView1;						
		private System.Windows.Forms.DataGridViewTextBoxColumn FirstName;
		private System.Windows.Forms.DataGridViewTextBoxColumn LastName;
		private System.Windows.Forms.DataGridViewTextBoxColumn login_name;
		private System.Windows.Forms.DataGridViewTextBoxColumn password;
	}
}

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
Software Developer (Senior) Troppus Software
United States United States
Currently working as a Senior Silverlight Developer with Troppus Software in Superior, CO. I enjoy statistics, programming, new technology, playing the cello, and reading codeproject articles. Smile | :)

Comments and Discussions