Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Combo box fill using LINQ

$
0
0

Hi,

I am stuck with the function that returns the results from a LINQ2SQL stored procedure. This function will be used as a combo box data source to fill it. Any suggestions.

 public List<TM_Payment> getSuspendedPayments()

        {

            List<TM_Payment> Identity = (List<TM_Payment>)tmd.TM_GetSuspendedPayments();

            return Identity;

        }


Unable to cast object of type 'SingleResult`1[TradeMark.TM_GetSuspendedPaymentsResult]' to type 'System.Collections.Generic.List`1[TradeMark.TM_Payment]'.


Thanks,
Raghu


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>