eDosStation/syncEdosLocal/DataSet1.cs
2026-10-15 15:45:49 +02:00

81 lines
2.4 KiB
C#

namespace syncEdosLocal
{
partial class DataSet1
{
}
}
namespace syncEdosLocal.DataSet1TableAdapters
{
partial class EPDDeviceLogTableAdapter
{
public string DynamicConnectionString
{
set
{
// 1. Update the primary connection string
if (this.Connection != null)
{
this.Connection.ConnectionString = value;
}
// 2. Clear/Update the cached custom queries collection
if (this._commandCollection == null)
{
this.InitCommandCollection();
}
// Loop through every cached query and forcefully update its connection
for (int i = 0; i < this._commandCollection.Length; i++)
{
if (this._commandCollection[i] != null)
{
this._commandCollection[i].Connection.ConnectionString = value;
}
}
}
}
public bool AcceptChangesDuringFill
{
get { return this.Adapter.AcceptChangesDuringFill; }
set { this.Adapter.AcceptChangesDuringFill = value; }
}
}
public partial class EPDIDTableAdapter
{
public bool AcceptChangesDuringFill
{
get { return this.Adapter.AcceptChangesDuringFill; }
set { this.Adapter.AcceptChangesDuringFill = value; }
}
public string DynamicConnectionString
{
set
{
// 1. Update the primary connection string
if (this.Connection != null)
{
this.Connection.ConnectionString = value;
}
// 2. Clear/Update the cached custom queries collection
if (this._commandCollection == null)
{
this.InitCommandCollection();
}
// Loop through every cached query and forcefully update its connection
for (int i = 0; i < this._commandCollection.Length; i++)
{
if (this._commandCollection[i] != null)
{
this._commandCollection[i].Connection.ConnectionString = value;
}
}
}
}
}
}