Google+ Tools
Make Google+ profile picture
Make Google plus banners for profile
Create and share your Google Plus profile banners.

Profile image for mrk studios KamyarP on June 24, 2012

Overriding TableAdapter ConnectionString

Language
C#
Tags

Overriding TableAdapter ConnectionString


namespace somepackage.MyDataSetTableAdapters
{
    public partial class ClientsTableAdapter
    {
        public void SetCustomConnection(string connectionString)
        {
            System.Data.SqlClient.SqlConnection conn = new   System.Data.SqlClient.SqlConnection();
            conn.ConnectionString = connectionString;
            this.Connection = conn;
        }
    }
}

Comments

blog comments powered by Disqus