Cast LINQ Function Result to Domain Object

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-05-24T01:13:33Z Indexed on 2010/05/24 1:21 UTC
Read the original article Hit count: 321

Filed under:
|
|
|

Hello, I have a table valued function to perform full text search on SQL server.

The result type of my full text search function in LINQ is a special autogenerated type which includes KEY and RANK in addition to my regular domain object properties.

So, if my regular domain object is PERSONS (with properties FirstName, LastName etc.), I also have a result object PERSONS_FTSResult with the same properties + KEY and RANK.

Is there an easy way to cast it back to PERSONS?

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ