hi Otis,
I have created a TypedList with fields I want with different alias names as that are in actual table. And I have used the following code
CustomerReminderTypedList customerReminderTypedList = new CustomerReminderTypedList();
RelationPredicateBucket bucket = (RelationPredicateBucket)customerReminderTypedList.GetRelationInfo();
bucket.PredicateExpression.Add(PredicateFactory.CompareValue( TblActivityFieldIndex.SzActivityStatus,ComparisonOperator.Equal,"Open"));
bucket.Relations.Add(TblActivityEntity.Relations.TblActivityEntityUsingGuReferenceId);
// here GuReferenceId is the column which is related to PK i,e GuActivityId
bucket.adapter.FetchTypedList(customerReminderTypedList.GetFieldsInfo(), customerReminderTypedList,bucket);
I got the follwing error
Tables or functions 'Elead.dbo.tblActivity' and 'Elead.dbo.tblActivity' have the same exposed names. Use correlation names to distinguish them.
Urgent help needed
Regards
Sujay