Click here to Skip to main content
12,304,884 members (70,846 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Tagged as

Stats

58.7K views
3.3K downloads
24 bookmarked
Posted

MongoDB with C#.NET

, 30 Jan 2012 CPOL
This article demonstrates how to get started with MongoDB in C#.NET
namespace MongoDB2
{
    partial class Form1
    {
        /// <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 Windows Form 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.btnDeleteDepartments = new System.Windows.Forms.Button();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.btnDeleteEmployees = new System.Windows.Forms.Button();
            this.btnGetEmployees = new System.Windows.Forms.Button();
            this.btnGetDepartments = new System.Windows.Forms.Button();
            this.panel1 = new System.Windows.Forms.Panel();
            this.btnCreateData = new System.Windows.Forms.Button();
            this.panel2 = new System.Windows.Forms.Panel();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnDeleteDepartments
            // 
            this.btnDeleteDepartments.Location = new System.Drawing.Point(322, 11);
            this.btnDeleteDepartments.Name = "btnDeleteDepartments";
            this.btnDeleteDepartments.Size = new System.Drawing.Size(113, 23);
            this.btnDeleteDepartments.TabIndex = 6;
            this.btnDeleteDepartments.Text = "Delete Departments";
            this.btnDeleteDepartments.UseVisualStyleBackColor = true;
            this.btnDeleteDepartments.Click += new System.EventHandler(this.btnDeleteDepartments_Click);
            // 
            // dataGridView1
            // 
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dataGridView1.Location = new System.Drawing.Point(0, 0);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.Size = new System.Drawing.Size(722, 297);
            this.dataGridView1.TabIndex = 0;
            // 
            // btnDeleteEmployees
            // 
            this.btnDeleteEmployees.Location = new System.Drawing.Point(441, 12);
            this.btnDeleteEmployees.Name = "btnDeleteEmployees";
            this.btnDeleteEmployees.Size = new System.Drawing.Size(113, 23);
            this.btnDeleteEmployees.TabIndex = 7;
            this.btnDeleteEmployees.Text = "Delete Employees";
            this.btnDeleteEmployees.UseVisualStyleBackColor = true;
            this.btnDeleteEmployees.Click += new System.EventHandler(this.btnDeleteEmployees_Click);
            // 
            // btnGetEmployees
            // 
            this.btnGetEmployees.Location = new System.Drawing.Point(222, 11);
            this.btnGetEmployees.Name = "btnGetEmployees";
            this.btnGetEmployees.Size = new System.Drawing.Size(94, 23);
            this.btnGetEmployees.TabIndex = 5;
            this.btnGetEmployees.Text = "Get Employees";
            this.btnGetEmployees.UseVisualStyleBackColor = true;
            this.btnGetEmployees.Click += new System.EventHandler(this.btnGetEmployees_Click);
            // 
            // btnGetDepartments
            // 
            this.btnGetDepartments.Location = new System.Drawing.Point(118, 12);
            this.btnGetDepartments.Name = "btnGetDepartments";
            this.btnGetDepartments.Size = new System.Drawing.Size(98, 23);
            this.btnGetDepartments.TabIndex = 4;
            this.btnGetDepartments.Text = "Get Departments";
            this.btnGetDepartments.UseVisualStyleBackColor = true;
            this.btnGetDepartments.Click += new System.EventHandler(this.btnGetDepartments_Click);
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.btnDeleteEmployees);
            this.panel1.Controls.Add(this.btnDeleteDepartments);
            this.panel1.Controls.Add(this.btnGetEmployees);
            this.panel1.Controls.Add(this.btnGetDepartments);
            this.panel1.Controls.Add(this.btnCreateData);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(722, 69);
            this.panel1.TabIndex = 2;
            // 
            // btnCreateData
            // 
            this.btnCreateData.Location = new System.Drawing.Point(12, 12);
            this.btnCreateData.Name = "btnCreateData";
            this.btnCreateData.Size = new System.Drawing.Size(100, 23);
            this.btnCreateData.TabIndex = 3;
            this.btnCreateData.Text = "Create Data";
            this.btnCreateData.UseVisualStyleBackColor = true;
            this.btnCreateData.Click += new System.EventHandler(this.btnCreateData_Click);
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.dataGridView1);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel2.Location = new System.Drawing.Point(0, 69);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(722, 297);
            this.panel2.TabIndex = 3;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(722, 366);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button btnDeleteDepartments;
        private System.Windows.Forms.DataGridView dataGridView1;
        private System.Windows.Forms.Button btnDeleteEmployees;
        private System.Windows.Forms.Button btnGetEmployees;
        private System.Windows.Forms.Button btnGetDepartments;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Button btnCreateData;
        private System.Windows.Forms.Panel panel2;
    }
}

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)

Share

About the Author

Muhammad-Idrees-1
Software Developer (Senior) Support Services Company Ltd.
Pakistan Pakistan
Karachi - Pakistan.
http://idreesdotnet.blogspot.com/

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160530.1 | Last Updated 30 Jan 2012
Article Copyright 2012 by Muhammad-Idrees-1
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid