any one can Convert thin line for me from VB to C#

Group Join comp In cmyDb.Companies On comp.Id Equals c.CompanyId Into leftjoin = Group

its inside this Query

grd.DataSource = (From c In cmyDb.Branches
                     Join g In cmyDb.GroupApplicationSetups On c.ID Equals g.RecordId
                     Join e In cmyDb.Groups On g.GroupID Equals e.ID
                     Join gU In cmyDb.GroupUsers On e.ID Equals gU.GroupId
                     Group Join comp In cmyDb.Companies On comp.Id Equals c.CompanyId Into leftjoin = Group
                     From comp In leftjoin.DefaultIfEmpty()
                     Where g.VType = vType And gU.UserId = SUserId And e.IsActive = 1
                     Order By c.BranchName Ascending
                     Select c.ID, c.BranchCode, c.BranchName, c.BranchPhone, c.Address, c.IsActive(), c.BranchNameArabic, Company = comp.LongName).Distinct

Related posts

Recent Viewed