Ejemplo n.º 1
0
 public void UpdateConfiguration(ConfigurationItem item)
 {
     RepositoryAction.Transaction((c, t) =>
     {
         var dao = new ConfigDao(c, t);
         dao.DeleteInsert(ConfigTableRow.FromDomainObject(item));
     });
 }
Ejemplo n.º 2
0
            public ConfigTableRow AddConfigTableRow(string Application, string PCName, string Key, string Value, string Security)
            {
                ConfigTableRow rowConfigTableRow = ((ConfigTableRow)(this.NewRow()));

                object[] columnValuesArray = new object[] {
                    Application,
                    PCName,
                    Key,
                    Value,
                    Security
                };
                rowConfigTableRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowConfigTableRow);
                return(rowConfigTableRow);
            }
Ejemplo n.º 3
0
 public ConfigTableRowChangeEvent(ConfigTableRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Ejemplo n.º 4
0
 public void RemoveConfigTableRow(ConfigTableRow row)
 {
     this.Rows.Remove(row);
 }
Ejemplo n.º 5
0
 public void AddConfigTableRow(ConfigTableRow row)
 {
     this.Rows.Add(row);
 }