diff --git a/SteamWareLib/DS_Utility.Designer.cs b/SteamWareLib/DS_Utility.Designer.cs
index 8dc556d..9faea59 100644
--- a/SteamWareLib/DS_Utility.Designer.cs
+++ b/SteamWareLib/DS_Utility.Designer.cs
@@ -30,6 +30,8 @@ namespace SteamWare {
private ConfigDataTable tableConfig;
+ private ConfigTmpDataTable tableConfigTmp;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -67,6 +69,9 @@ namespace SteamWare {
if ((ds.Tables["Config"] != null)) {
base.Tables.Add(new ConfigDataTable(ds.Tables["Config"]));
}
+ if ((ds.Tables["ConfigTmp"] != null)) {
+ base.Tables.Add(new ConfigTmpDataTable(ds.Tables["ConfigTmp"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -115,6 +120,16 @@ namespace SteamWare {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public ConfigTmpDataTable ConfigTmp {
+ get {
+ return this.tableConfigTmp;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -191,6 +206,9 @@ namespace SteamWare {
if ((ds.Tables["Config"] != null)) {
base.Tables.Add(new ConfigDataTable(ds.Tables["Config"]));
}
+ if ((ds.Tables["ConfigTmp"] != null)) {
+ base.Tables.Add(new ConfigTmpDataTable(ds.Tables["ConfigTmp"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -242,6 +260,12 @@ namespace SteamWare {
this.tableConfig.InitVars();
}
}
+ this.tableConfigTmp = ((ConfigTmpDataTable)(base.Tables["ConfigTmp"]));
+ if ((initTable == true)) {
+ if ((this.tableConfigTmp != null)) {
+ this.tableConfigTmp.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -258,6 +282,8 @@ namespace SteamWare {
base.Tables.Add(this.tablev_selListVal);
this.tableConfig = new ConfigDataTable();
base.Tables.Add(this.tableConfig);
+ this.tableConfigTmp = new ConfigTmpDataTable();
+ base.Tables.Add(this.tableConfigTmp);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -278,6 +304,12 @@ namespace SteamWare {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeConfigTmp() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -342,6 +374,9 @@ namespace SteamWare {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void ConfigRowChangeEventHandler(object sender, ConfigRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void ConfigTmpRowChangeEventHandler(object sender, ConfigTmpRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -1218,6 +1253,314 @@ namespace SteamWare {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class ConfigTmpDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnsorgente;
+
+ private global::System.Data.DataColumn columnchiave;
+
+ private global::System.Data.DataColumn columnvalore;
+
+ private global::System.Data.DataColumn columnnote;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpDataTable() {
+ this.TableName = "ConfigTmp";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal ConfigTmpDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected ConfigTmpDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn sorgenteColumn {
+ get {
+ return this.columnsorgente;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn chiaveColumn {
+ get {
+ return this.columnchiave;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn valoreColumn {
+ get {
+ return this.columnvalore;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn noteColumn {
+ get {
+ return this.columnnote;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRow this[int index] {
+ get {
+ return ((ConfigTmpRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ConfigTmpRowChangeEventHandler ConfigTmpRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ConfigTmpRowChangeEventHandler ConfigTmpRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ConfigTmpRowChangeEventHandler ConfigTmpRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event ConfigTmpRowChangeEventHandler ConfigTmpRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddConfigTmpRow(ConfigTmpRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRow AddConfigTmpRow(string sorgente, string chiave, string valore, string note) {
+ ConfigTmpRow rowConfigTmpRow = ((ConfigTmpRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ sorgente,
+ chiave,
+ valore,
+ note};
+ rowConfigTmpRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowConfigTmpRow);
+ return rowConfigTmpRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRow FindBysorgentechiave(string sorgente, string chiave) {
+ return ((ConfigTmpRow)(this.Rows.Find(new object[] {
+ sorgente,
+ chiave})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ ConfigTmpDataTable cln = ((ConfigTmpDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new ConfigTmpDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnsorgente = base.Columns["sorgente"];
+ this.columnchiave = base.Columns["chiave"];
+ this.columnvalore = base.Columns["valore"];
+ this.columnnote = base.Columns["note"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnsorgente = new global::System.Data.DataColumn("sorgente", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnsorgente);
+ this.columnchiave = new global::System.Data.DataColumn("chiave", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnchiave);
+ this.columnvalore = new global::System.Data.DataColumn("valore", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnvalore);
+ this.columnnote = new global::System.Data.DataColumn("note", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnnote);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnsorgente,
+ this.columnchiave}, true));
+ this.columnsorgente.AllowDBNull = false;
+ this.columnsorgente.MaxLength = 50;
+ this.columnchiave.AllowDBNull = false;
+ this.columnchiave.MaxLength = 50;
+ this.columnvalore.AllowDBNull = false;
+ this.columnvalore.MaxLength = 250;
+ this.columnnote.AllowDBNull = false;
+ this.columnnote.MaxLength = 250;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRow NewConfigTmpRow() {
+ return ((ConfigTmpRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new ConfigTmpRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(ConfigTmpRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.ConfigTmpRowChanged != null)) {
+ this.ConfigTmpRowChanged(this, new ConfigTmpRowChangeEvent(((ConfigTmpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.ConfigTmpRowChanging != null)) {
+ this.ConfigTmpRowChanging(this, new ConfigTmpRowChangeEvent(((ConfigTmpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.ConfigTmpRowDeleted != null)) {
+ this.ConfigTmpRowDeleted(this, new ConfigTmpRowChangeEvent(((ConfigTmpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.ConfigTmpRowDeleting != null)) {
+ this.ConfigTmpRowDeleting(this, new ConfigTmpRowChangeEvent(((ConfigTmpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveConfigTmpRow(ConfigTmpRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Utility ds = new DS_Utility();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "ConfigTmpDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -1475,6 +1818,65 @@ namespace SteamWare {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class ConfigTmpRow : global::System.Data.DataRow {
+
+ private ConfigTmpDataTable tableConfigTmp;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal ConfigTmpRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableConfigTmp = ((ConfigTmpDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string sorgente {
+ get {
+ return ((string)(this[this.tableConfigTmp.sorgenteColumn]));
+ }
+ set {
+ this[this.tableConfigTmp.sorgenteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string chiave {
+ get {
+ return ((string)(this[this.tableConfigTmp.chiaveColumn]));
+ }
+ set {
+ this[this.tableConfigTmp.chiaveColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string valore {
+ get {
+ return ((string)(this[this.tableConfigTmp.valoreColumn]));
+ }
+ set {
+ this[this.tableConfigTmp.valoreColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string note {
+ get {
+ return ((string)(this[this.tableConfigTmp.noteColumn]));
+ }
+ set {
+ this[this.tableConfigTmp.noteColumn] = value;
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -1576,6 +1978,40 @@ namespace SteamWare {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class ConfigTmpRowChangeEvent : global::System.EventArgs {
+
+ private ConfigTmpRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRowChangeEvent(ConfigTmpRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace SteamWare.DS_UtilityTableAdapters {
@@ -1752,7 +2188,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.DbConfConnectionString;
+ this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.GMWConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2359,7 +2795,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.DbConfConnectionString;
+ this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.GMWConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2627,7 +3063,7 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.DbConfConnectionString;
+ this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.GMWConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2868,6 +3304,524 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class ConfigTmpTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public ConfigTmpTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "ConfigTmp";
+ tableMapping.ColumnMappings.Add("sorgente", "sorgente");
+ tableMapping.ColumnMappings.Add("chiave", "chiave");
+ tableMapping.ColumnMappings.Add("valore", "valore");
+ tableMapping.ColumnMappings.Add("note", "note");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ConfigTmp] WHERE (([sorgente] = @Original_sorgente) AND ([chia" +
+ "ve] = @Original_chiave) AND ([valore] = @Original_valore) AND ([note] = @Origina" +
+ "l_note))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sorgente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sorgente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chiave", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chiave", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ConfigTmp] ([sorgente], [chiave], [valore], [note]) VALUES (@s" +
+ "orgente, @chiave, @valore, @note);\r\nSELECT sorgente, chiave, valore, note FROM C" +
+ "onfigTmp WHERE (chiave = @chiave) AND (sorgente = @sorgente)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sorgente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sorgente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chiave", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chiave", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ConfigTmp] SET [sorgente] = @sorgente, [chiave] = @chiave, [valore] = @valore, [note] = @note WHERE (([sorgente] = @Original_sorgente) AND ([chiave] = @Original_chiave) AND ([valore] = @Original_valore) AND ([note] = @Original_note));
+SELECT sorgente, chiave, valore, note FROM ConfigTmp WHERE (chiave = @chiave) AND (sorgente = @sorgente)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sorgente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sorgente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chiave", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chiave", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sorgente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sorgente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_chiave", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "chiave", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "valore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::SteamWare.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT sorgente, chiave, valore, note FROM dbo.ConfigTmp";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_confTemp_getBySorgente";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sorgente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@filtData", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_confTemp_insertQuery";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sorgente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@chiave", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@valore", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_confTemp_reset";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sorgente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Utility.ConfigTmpDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Utility.ConfigTmpDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Utility.ConfigTmpDataTable dataTable = new DS_Utility.ConfigTmpDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Utility.ConfigTmpDataTable getBySorgente(string sorgente, global::System.Nullable filtData) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((sorgente == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sorgente));
+ }
+ if ((filtData.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(filtData.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ DS_Utility.ConfigTmpDataTable dataTable = new DS_Utility.ConfigTmpDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Utility.ConfigTmpDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Utility dataSet) {
+ return this.Adapter.Update(dataSet, "ConfigTmp");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_sorgente, string Original_chiave, string Original_valore, string Original_note) {
+ if ((Original_sorgente == null)) {
+ throw new global::System.ArgumentNullException("Original_sorgente");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_sorgente));
+ }
+ if ((Original_chiave == null)) {
+ throw new global::System.ArgumentNullException("Original_chiave");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_chiave));
+ }
+ if ((Original_valore == null)) {
+ throw new global::System.ArgumentNullException("Original_valore");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_valore));
+ }
+ if ((Original_note == null)) {
+ throw new global::System.ArgumentNullException("Original_note");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string sorgente, string chiave, string valore, string note) {
+ if ((sorgente == null)) {
+ throw new global::System.ArgumentNullException("sorgente");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(sorgente));
+ }
+ if ((chiave == null)) {
+ throw new global::System.ArgumentNullException("chiave");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(chiave));
+ }
+ if ((valore == null)) {
+ throw new global::System.ArgumentNullException("valore");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(valore));
+ }
+ if ((note == null)) {
+ throw new global::System.ArgumentNullException("note");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string sorgente, string chiave, string valore, string note, string Original_sorgente, string Original_chiave, string Original_valore, string Original_note) {
+ if ((sorgente == null)) {
+ throw new global::System.ArgumentNullException("sorgente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(sorgente));
+ }
+ if ((chiave == null)) {
+ throw new global::System.ArgumentNullException("chiave");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(chiave));
+ }
+ if ((valore == null)) {
+ throw new global::System.ArgumentNullException("valore");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(valore));
+ }
+ if ((note == null)) {
+ throw new global::System.ArgumentNullException("note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(note));
+ }
+ if ((Original_sorgente == null)) {
+ throw new global::System.ArgumentNullException("Original_sorgente");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_sorgente));
+ }
+ if ((Original_chiave == null)) {
+ throw new global::System.ArgumentNullException("Original_chiave");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_chiave));
+ }
+ if ((Original_valore == null)) {
+ throw new global::System.ArgumentNullException("Original_valore");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_valore));
+ }
+ if ((Original_note == null)) {
+ throw new global::System.ArgumentNullException("Original_note");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string valore, string note, string Original_sorgente, string Original_chiave, string Original_valore, string Original_note) {
+ return this.Update(Original_sorgente, Original_chiave, valore, note, Original_sorgente, Original_chiave, Original_valore, Original_note);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int insertQuery(string sorgente, string chiave, string valore, string note) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((sorgente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(sorgente));
+ }
+ if ((chiave == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(chiave));
+ }
+ if ((valore == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(valore));
+ }
+ if ((note == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(note));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int reset(string sorgente) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ if ((sorgente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(sorgente));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -2884,6 +3838,8 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
private ConfigTableAdapter _configTableAdapter;
+ private ConfigTmpTableAdapter _configTmpTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -2927,6 +3883,20 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public ConfigTmpTableAdapter ConfigTmpTableAdapter {
+ get {
+ return this._configTmpTableAdapter;
+ }
+ set {
+ this._configTmpTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -2954,6 +3924,10 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
&& (this._configTableAdapter.Connection != null))) {
return this._configTableAdapter.Connection;
}
+ if (((this._configTmpTableAdapter != null)
+ && (this._configTmpTableAdapter.Connection != null))) {
+ return this._configTmpTableAdapter.Connection;
+ }
return null;
}
set {
@@ -2973,6 +3947,9 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
if ((this._configTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._configTmpTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -3002,6 +3979,15 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._configTmpTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.ConfigTmp.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._configTmpTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -3028,6 +4014,14 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._configTmpTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.ConfigTmp.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._configTmpTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -3038,6 +4032,14 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private int UpdateDeletedRows(DS_Utility dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._configTmpTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.ConfigTmp.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._configTmpTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._configTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Config.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -3103,6 +4105,11 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
+ if (((this._configTmpTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._configTmpTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
+ "a stessa stringa di connessione.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager non contiene informazioni di connessione. Impostare la propri" +
@@ -3154,6 +4161,15 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
adaptersWithAcceptChangesDuringUpdate.Add(this._configTableAdapter.Adapter);
}
}
+ if ((this._configTmpTableAdapter != null)) {
+ revertConnections.Add(this._configTmpTableAdapter, this._configTmpTableAdapter.Connection);
+ this._configTmpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._configTmpTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._configTmpTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._configTmpTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._configTmpTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -3220,6 +4236,10 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)";
this._configTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._configTableAdapter]));
this._configTableAdapter.Transaction = null;
}
+ if ((this._configTmpTableAdapter != null)) {
+ this._configTmpTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._configTmpTableAdapter]));
+ this._configTmpTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/SteamWareLib/DS_Utility.xsd b/SteamWareLib/DS_Utility.xsd
index 5f1e935..77d3cfe 100644
--- a/SteamWareLib/DS_Utility.xsd
+++ b/SteamWareLib/DS_Utility.xsd
@@ -2,16 +2,17 @@
-
+
+
-
+
DELETE FROM [dbo].[ListValues] WHERE (([TableName] = @Original_TableName) AND ([FieldName] = @Original_FieldName) AND ([value] = @Original_value) AND ((@IsNull_label = 1 AND [label] IS NULL) OR ([label] = @Original_label)) AND ((@IsNull_ordinal = 1 AND [ordinal] IS NULL) OR ([ordinal] = @Original_ordinal)))
@@ -75,7 +76,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_delete
@@ -88,7 +89,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_getByTable
@@ -99,7 +100,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_getDistTable
@@ -109,7 +110,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_insNew
@@ -124,7 +125,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_update
@@ -143,7 +144,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
SELECT value, label FROM dbo.v_selListVal
@@ -157,7 +158,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_getValidValues
@@ -169,7 +170,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN
-
+
dbo.stp_listValues_getValidValuesTrad
@@ -253,6 +254,102 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
+
+
+
+
+
+ DELETE FROM [dbo].[ConfigTmp] WHERE (([sorgente] = @Original_sorgente) AND ([chiave] = @Original_chiave) AND ([valore] = @Original_valore) AND ([note] = @Original_note))
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[ConfigTmp] ([sorgente], [chiave], [valore], [note]) VALUES (@sorgente, @chiave, @valore, @note);
+SELECT sorgente, chiave, valore, note FROM ConfigTmp WHERE (chiave = @chiave) AND (sorgente = @sorgente)
+
+
+
+
+
+
+
+
+
+
+ SELECT sorgente, chiave, valore, note FROM dbo.ConfigTmp
+
+
+
+
+
+ UPDATE [dbo].[ConfigTmp] SET [sorgente] = @sorgente, [chiave] = @chiave, [valore] = @valore, [note] = @note WHERE (([sorgente] = @Original_sorgente) AND ([chiave] = @Original_chiave) AND ([valore] = @Original_valore) AND ([note] = @Original_note));
+SELECT sorgente, chiave, valore, note FROM ConfigTmp WHERE (chiave = @chiave) AND (sorgente = @sorgente)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_confTemp_getBySorgente
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_confTemp_insertQuery
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_confTemp_reset
+
+
+
+
+
+
+
+
+
@@ -261,7 +358,7 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
-
+
@@ -296,7 +393,7 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
-
+
@@ -316,7 +413,7 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
-
+
@@ -343,6 +440,40 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -355,5 +486,10 @@ SELECT chiave, valore, note FROM Config WHERE (chiave = @chiave)
+
+
+
+
+
\ No newline at end of file
diff --git a/SteamWareLib/DS_Utility.xss b/SteamWareLib/DS_Utility.xss
index a8ff147..67cf2e8 100644
--- a/SteamWareLib/DS_Utility.xss
+++ b/SteamWareLib/DS_Utility.xss
@@ -6,9 +6,10 @@
-->
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/SteamWareLib/Properties/Settings.Designer.cs b/SteamWareLib/Properties/Settings.Designer.cs
index 0cdc207..57717db 100644
--- a/SteamWareLib/Properties/Settings.Designer.cs
+++ b/SteamWareLib/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace SteamWare.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -154,5 +154,16 @@ namespace SteamWare.Properties {
return ((string)(this["GMWConnectionString"]));
}
}
+
+ [global::System.Configuration.ApplicationScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID" +
+ "=sa;Password=keyhammer16")]
+ public string MoonProConnectionString {
+ get {
+ return ((string)(this["MoonProConnectionString"]));
+ }
+ }
}
}
diff --git a/SteamWareLib/Properties/Settings.settings b/SteamWareLib/Properties/Settings.settings
index dbf7e89..e96d734 100644
--- a/SteamWareLib/Properties/Settings.settings
+++ b/SteamWareLib/Properties/Settings.settings
@@ -98,5 +98,13 @@
</SerializableConnectionString>
Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;
+
+ <?xml version="1.0" encoding="utf-16"?>
+<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <ConnectionString>Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
+ <ProviderName>System.Data.SqlClient</ProviderName>
+</SerializableConnectionString>
+ Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16
+
\ No newline at end of file
diff --git a/SteamWareLib/app.config b/SteamWareLib/app.config
index 6f56c39..c7a45c3 100644
--- a/SteamWareLib/app.config
+++ b/SteamWareLib/app.config
@@ -60,6 +60,9 @@
+
diff --git a/SteamWareLib/memLayer.cs b/SteamWareLib/memLayer.cs
index 7e415ed..b0ea31c 100644
--- a/SteamWareLib/memLayer.cs
+++ b/SteamWareLib/memLayer.cs
@@ -20,13 +20,18 @@ namespace SteamWare
///
protected AppSettingsReader configAppSetReader;
- #endregion
+ #endregion
///
/// Table adapter accesso conf parameters
///
public DS_UtilityTableAdapters.ConfigTableAdapter taConfig;
+ ///
+ /// Table adapter accesso conf parameters TMP (x import/check)
+ ///
+ public DS_UtilityTableAdapters.ConfigTmpTableAdapter taConfigTmp;
+
///
/// oggetto singleton x accesso al layer di memoria
///
@@ -60,6 +65,7 @@ namespace SteamWare
protected void initTA()
{
taConfig = new DS_UtilityTableAdapters.ConfigTableAdapter();
+ taConfigTmp = new DS_UtilityTableAdapters.ConfigTmpTableAdapter();
}
///
/// stringa conn x DB CONF
@@ -89,8 +95,9 @@ namespace SteamWare
///
protected virtual void setupConnectionStringBase()
{
- // connections del db
+ // connections del db
taConfig.Connection.ConnectionString = connStringDbConf;
+ taConfigTmp.Connection.ConnectionString = connStringDbConf;
}
#region area gestione config su DB