public static List<mainISRC> comedianlist(int iid)
{
List<mainISRC> newlst = new List<mainISRC>();
ISRCManagementDBEntities1 dbcontext = new ISRCManagementDBEntities1();
newlst=(from z in dbcontext.Comedians
where !(from b in dbcontext.mainISRCs
where b.id==iid && b.Actor1==z.Comedian1 || b.Comedian1==z.Comedian1 || b.Comedian3==z.Comedian1 || b.Comedian4==z.Comedian1).Any()
select z.Comedian1).ToList();
return newlst;
}
I have a table name "comedian" with column 'id','Comedian' and 'IsActive' which contain 50 numbers of rows and also I have another table name "mainISRC" with column 'id','Actor1','Actor2','Actor3','Actor4'. 'id' column in "actorlist" and 'iid' column in "addrecord" are not same.
I have to find all those 'comedian' from "comedian" which are not in 'Actor1','Actor2','Actor3','Actor4' column. What will be the Linq query for this?