I would like to join two table on columns with different data types. for example : Column c1 from Table T1 and Column C2 from Table T2. C1 is integer and C2 is string.
In SQL Server I write this query :
Select * from T1 inner join T2 on Cast(C1 as Nvarchar(20)) = C2
the following statements should produce the same result:
[C#]
customRelation = new EntityRelation(RelationType.OneToOne);
customRelation.AddEntityFieldPair(C1Field,C2Field);
but there would be no Cast function in the result, so SQL Server raise the following error :
Syntax error converting the nvarchar value 'ACC' to a column of data type int.