IEnumerable<FigureModel> data = (from figure in context.Figures join rarity in context.Rarities on figure.RarityID equals rarity.RarityID join figureKeywords in context.FigureKeywords on figure.FigureID equals figureKeywords.FigureID join keywords in context.Keywords on figureKeywords.KeywordID equals keywords.KeywordID where figure.Name.Contains(QueryString) && ((powerMap & figure.PowerMap) == powerMap) && (SelectedSet == null ? true : figure.SetID == SelectedSet.SetID) select new FigureModel { Cost = figure.Cost, Name = figure.Name, Rarity = rarity.Name, SetNumber = figure.SetNumber.ToUpper(), });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)