Beispiel #1
0
            public Inserter2(Func <string> Maker, Database db, pairAdder Add, string Table, object obj)
                : base(Maker, db)
            {
                this.Table = Table;

                foreach (var prop in obj.GetType().GetProperties())
                {
                    Add(prop.Name, prop.GetValue(obj));
                }
            }
 public Updater2(Func <string> Maker, Database db, whereGen <Wherer> Where, whereContitionsGen <Wherer> WhereCondition, pairAdder Add, string Table, object pairs)
     : base(Maker, db)
 {
     this.Table          = Table;
     this.Where          = Where;
     this.WhereCondition = WhereCondition;
     foreach (var prop in pairs.GetType().GetProperties())
     {
         Add(prop.Name, prop.GetValue(pairs));
     }
 }