I have a LINQ2SQL Query:
//Pulling the Product_ID from the PlanMaster Table from WebEnroll DB!
var tr = from s in dt.PlanMasters
where s.PlanName == productName
select new
{
s.Product_ID
};
This is pulling Product_ID which is working good. Now I want to ADD a record into another LINQ statement which is here:
CommissionsV2DataContext cv = new CommissionsV2DataContext();
Entity_Product_Point ev = new Entity_Product_Point();
ev.Entity_ID = getEntity;
ev.Product_ID = tr.; ?????
I want to store the variable which I am getting from tr (that is Product_ID) to ev.Product_ID.
How should I convert an object to an INT? Thank you!