However, in some cases (i.e. when a record has been edited or added), I want a particular record to be the first one.
- Code: Select all
// dOOdad without the edited record
MydOOdad d1 = new MydOOdad();
d1.Where.RecordID.Value = 199;
d1.Where.RecordID.Operator = WhereParameter.Operand.NotEqual;
d1.Query.AddOrderBy(MydOOdad.ColumnNames.RecordID, WhereParameter.Dir.ASC);
d1.Query.Load();
// dOOdad with the edited record(s) only
MydOOdad d2 = new MydOOdad();
d2.Where.RecordID.Value = 199;
d2.Query.Load();
// the doodad to be bound to the repeater
MydOOdad BindMe = new MydOOdad();
// what to do here?
BindMe = d2 + d1;
Can this be done, without resorting to looping through both dOOdads and adding each entry to another one?
