A
Andrus
I tried
Northwind db = CreateDB();
IQueryable<Customer> gqueryable = (from c in db.Customers
select new { c.CustomerID, c.City }).Cast<Customer>();
but got exception in Cast<>()
Why Cast() is not working ? It should be easy for Cast() to create new
Customer and assign matching properties.
How to fix ?
Is it possible to write fixed Cast() function which allows this ?
Andrus.
Northwind db = CreateDB();
IQueryable<Customer> gqueryable = (from c in db.Customers
select new { c.CustomerID, c.City }).Cast<Customer>();
but got exception in Cast<>()
Why Cast() is not working ? It should be easy for Cast() to create new
Customer and assign matching properties.
How to fix ?
Is it possible to write fixed Cast() function which allows this ?
Andrus.