Contains in Linq with entity

Sometimes we require to use In or Not in operator in LINQ. below is the example var setToRemove = “Approved,Rejected”.Split(‘,’); inv.StatusList = context.BindDropDown(fieldName:…

Read more

Nullable Tempdata in MVC

DateTime? FromDate = TempData[“FromDate”] as DateTime?; DateTime? ToDate = TempData[“ToDate”] as DateTime?; int? UserIdInv = TempData[“UserIdInv”] as int?;

Read more

Linq in Array in c#

Linq can be implemented in array with c#, below is code example of linq with array. var GroupCount = Request.QueryString[“AllchkIDs”].ToString().Split(‘,’).Where(i => i !=…

Read more