Hi Experts, I am working on a project for automobiles listing. I am using linq to entities. I have a table listing and corresponding a class Listing in my data model.
Listing
{
Listingid,
AccountID,
MakeId,
ModelId
}
I have lookup table where I keep all the lookup values for makes and models.
Lookupvalues
{
id,
Description
}
I havent created join between these tables yet.
Now, In a display page I have to display all the corresponding values from the lookup tables for makes and models, how should I fetch them. I have written a partial Listing class and created all these descripiton properties
public partial class Listing
{
MakeDescription
ModelDescription
}
I wrote stored procedure which joins the tables but it doesnt load the description properties in partial class.
What should I do ??
Thanks Parminder