Click here to Skip to main content
15,897,315 members
Articles / Programming Languages / SQL

Concurrent model in ADO.NET, ways that allow to negotiate disconnected model restrictions for Oracle databases

Rate me:
Please Sign up or sign in to vote.
4.24/5 (7 votes)
5 Dec 20068 min read 48.1K   314   23  
Using ADO.NET conrurrent model in Oracle databases.
namespace WindowsApplication3
{
    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.stOracleConnection1 = new Snotra.Data.STOracleConnection();
            this.stOraDataTable1 = new Snotra.Data.STOraDataTable();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            ((System.ComponentModel.ISupportInitialize)(this.stOraDataTable1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.SuspendLayout();
            // 
            // stOracleConnection1
            // 
            this.stOracleConnection1.ConnectionString = "Data source=orcl;User Id=scott;Password=tiger";
            // 
            // stOraDataTable1
            // 
            this.stOraDataTable1.BindingControl = this.dataGridView1;
            this.stOraDataTable1.CommitOnPost = true;
            this.stOraDataTable1.CurrentRecord = -1;
            this.stOraDataTable1.DetailFields = "";
            this.stOraDataTable1.Locale = new System.Globalization.CultureInfo("ru-RU");
            this.stOraDataTable1.LockingMode = Snotra.Data.STLockingMode.CheckImmediate;
            this.stOraDataTable1.Master = null;
            this.stOraDataTable1.MasterFields = "";
            this.stOraDataTable1.QueryAllRecords = false;
            this.stOraDataTable1.ReadBuffer = 25;
            this.stOraDataTable1.RefreshOptions.AfterInsert = false;
            this.stOraDataTable1.RefreshOptions.AfterUpdate = false;
            this.stOraDataTable1.RefreshOptions.AllFields = false;
            this.stOraDataTable1.RefreshOptions.BeforeEdit = false;
            this.stOraDataTable1.SQL = "select c.rowid, c.* from colors c";
            this.stOraDataTable1.SQLCommandType = System.Data.CommandType.Text;
            this.stOraDataTable1.STOracleConnection = this.stOracleConnection1;
            this.stOraDataTable1.StringFieldsOnly = false;
            this.stOraDataTable1.ThrowExceptions = false;
            this.stOraDataTable1.UpdatingTable = "";
            // 
            // dataGridView1
            // 
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Location = new System.Drawing.Point(2, 12);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.Size = new System.Drawing.Size(454, 242);
            this.dataGridView1.TabIndex = 0;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(468, 277);
            this.Controls.Add(this.dataGridView1);
            this.Name = "Form1";
            this.Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(this.stOraDataTable1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private Snotra.Data.STOracleConnection stOracleConnection1;
        private Snotra.Data.STOraDataTable stOraDataTable1;
        private System.Windows.Forms.DataGridView dataGridView1;
    }
}

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
Russian Federation Russian Federation
I started to write programs 10 years ago and used very different languages. Professionally, I developed systems that work with very large databases, mainly on Oracle. To date, I learned about 15 computer languages. As the moment, I'm in love with C# and the .NET framework, although I widely use Java, C++, Perl, PL/SQL. I prefer don't do user interfaces but like to develop reusable components.
PhD in Computer Science,
CEO of Snotra Tech

Comments and Discussions