Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryTableAdapter don`t have a Conection property [DNET435] #432

Closed
firebird-automations opened this issue May 21, 2012 · 3 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: Antony Veretennikov (borod_)

a Class QueryTableAdapter don`t have a conection property. I can`t change programaticly a conection .

i wrote this Code to get around this inconvinience.

// SummaryTA is a generated Component for queries

using FirebirdSql.Data.FirebirdClient;
using System.Data;

namespace RNTi.App.DATA.DataSets.SummaryDSTableAdapters
{
public partial class SummaryTA
{
public FbConnection Connection
{
set
{
foreach (IDbCommand com in this.CommandCollection)
{
com.Connection = value;
}
}
}
}
}

@firebird-automations
Copy link
Author

Modified by: Antony Veretennikov (borod_)

description: a Class QueryTableAdapter don`t have a conection property. I can`t change programaticly a conection .

=>

a Class QueryTableAdapter don`t have a conection property. I can`t change programaticly a conection .

i wrote this Code to get around this inconvinience.

// SummaryTA is a generated Component for queries

using FirebirdSql.Data.FirebirdClient;
using System.Data;

namespace RNTi.App.DATA.DataSets.SummaryDSTableAdapters
{
public partial class SummaryTA
{
public FbConnection Connection
{
set
{
foreach (IDbCommand com in this.CommandCollection)
{
com.Connection = value;
}
}
}
}
}

@firebird-automations
Copy link
Author

Commented by: @cincuranet

There's no connection property on DbDataAdapter, that's base class for it in http://ADO.NET, nor the SqlDataAdapter has one.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants