I have an Entity that has varchar and text columns (Text/CLOB database type).
The following query doesn't work, because MyEntity has Clob columns (Oracle). Similar behavior is expected in SqlServer with its Text columns.
var query = from e in ctx.MyEntity select e.Distinct()
How can I use Linq to retrive distinct rows from this table/entity?
Note: I can't use SqlServer's "varchar(max)"; it must be 'text' type; because in other DBMS like Oracle there's no varchar(max) type.
My issue is due to SqlServer and Oracle compatibility with Linq / Entity Framework.
Note2: I need objects of MyEntity type in the output select, and not generic types and no other kind of types.
I appreciate any suggestions. Thanks.