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:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.