views:

22

answers:

0

Hi guys,

This is the scenario : Upon invoking the ActiveRecordBase<t>.Save (entity) I want to execute the ActiveRecordBase<t>.FindAll() method. The new inserted record could not get the details on the child class while the other record can. This was happened everytime I inserted a new record. I'm just wondering what is wrong.

let say here is my parent and child class.

Parent
Id
ChildID

Child
Id
Details

here is my method

void Save() {
    ActiveRecordBase<t>.Save(entity);
    var result = BindResult();

}

void ICollection BindResult() {
  return ActiveRecordBase<t>.FindAll();

}

Need your advise. Thanks alot.