public List<NDT_Equipment> GetALLRecords()
{
using (NDT_DB)
{
return (from a in NDT_DB.NDTEquipment select a);
}
}
where : NDT_DB - class instance of the autogenerated database context class NDT_Equipment - partial class inside the database context class
what I want :
- return all records from table NDTEquipment
- what Im getting : " are you missing a cast " error everytime I compile ..
question : - am I allowed to use the NDT_Equipment partial class as a return value to be used in my VIEWMODEL ??? or I need to create a specific class to contain the results from this LINQ statement and that class is to be used in my VIEWMODEL ?