【文件属性】:
文件名称:c#数据库的连接
文件大小:58KB
文件格式:ZIP
更新时间:2016-04-03 15:26:02
数据库的链接
数据库的连接,基本的连接方法namespace data
{
partial class Form1
{
///
/// 必需的设计器变量。
///
private System.ComponentModel.IContainer components = null;
///
/// 清理所有正在使用的资源。
///
/// 如果应释放托管资源,为 true;否则为 false。
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
///
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
///
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.aaDataSet = new data.aaDataSet();
this.aaDataSetBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.Column1 = new System.Windows.Forms.DataGridViewButtonColumn();
this.Column2 = new System.Windows.Forms.DataGridViewButtonColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.aaDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.aaDataSetBindingSource)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(110, 227);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2});
this.dataGridView1.Location = new System.Drawing.Point(32, 12);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(240, 150);
this.dataGridView1.TabIndex = 1;
//
// aaDataSet
//
this.aaDataSet.DataSetName = "aaDataSet";
this.aaDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// aaDataSetBindingSource
//
this.aaDataSetBindingSource.DataSource = this.aaDataSet;
this.aaDataSetBindingSource.Position = 0;
//
// Column1
//
this.Column1.HeaderText = "Column1";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.HeaderText = "Column2";
this.Column2.Name = "Column2";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 262);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.aaDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.aaDataSetBindingSource)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewButtonColumn Column1;
private System.Windows.Forms.DataGridViewButtonColumn Column2;
private aaDataSet aaDataSet;
private System.Windows.Forms.BindingSource aaDataSetBindingSource;
}
}
【文件预览】:
data
----data.suo(13KB)
----data()
--------aaDataSet.xsd(2KB)
--------bin()
--------Form1.Designer.cs(5KB)
--------Program.cs(485B)
--------data.csproj(4KB)
--------obj()
--------aaDataSet.xsc(3B)
--------aaDataSet.xss(3B)
--------Form1.cs(914B)
--------app.config(383B)
--------Form1.resx(6KB)
--------Properties()
--------aaDataSet.Designer.cs(11KB)
----data.sln(902B)