Menu

newbie question

Help
rmadan
2004-11-23
2013-03-22
  • rmadan

    rmadan - 2004-11-23

    Hey,

    I'm having a bit of a problem.  I have the following setup..2 tables, Transaction, and TransactionResponses.  a Transaction can have many TransactionResponses.  My code is like this:

    My Code is like this:

    dm.QueryCriteria.Clear();
               
    dm.QueryCriteria.And(JoinPath.Transaction.Columns.TransactionID,mTransactionId,MatchType.Exact);
               
    Transaction tTransaction = dm.GetTransaction();

    and If I try to do a tTransaction.TransactionResponses it gives me a empty collection.  Now I know I have records in the db which are related and should be in the collection.

    Is there something I have to run in the Query or added parameters I have to give to get the transactionResponses to be populated?

     
    • Bob Archer

      Bob Archer - 2004-11-28

      You probably have to set up a FetchPath and pass it to GetTransactions so that it knows you want it to populate the TransactionReponses collection.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.