我有以下視圖模型: public class MvcFormsViewModel
{
public int RecCount { get; set; }
public List<Dictionary<string, string>> PageOfRecords { get; set; }
public MvcFormsViewModel()
{
我有我想要搜索的數據庫值。 要搜索某些內容,用戶需要選擇內存中列表中包含值的特定複選框(否則,複選框的任何更改值將導致保存數據庫,我想避免)。 從我的數據庫的數據由 .Load() 方法加載。 所以,我的問題是,idk如何構建查詢混合我的數據庫值與內存真/假值。 var query1 = from i in db.MyValuesTable
from j in MyMemoryOb
我有類似以下 if (this.IncludeGuestlist)
{
return from tn in tnQuery
join gi in bl.Database.GuestlistItems on tn.Id equals gi.TicketNumberId into gj
from giJoined in gj.DefaultIfEmpty()
您可以查看我的PICT: My relationship picture entities = new sampleEntities();
User usr = (from i in entities.Users
join j in entities.Updates
on i.ID equals j.ID
where i.NAME