You are on page 1of 1

using (var dc = new DataClasses1DataContext()) { dc.Connection.Open(); dc.ExecuteCommand("SET TRANSACTION ISOLATION LEVEL R EAD UNCOMMITTED;"); var NQuery = (from d in dc.

tblNotificationManagement s where d.NotificationId == Convert.ToIn t32(dr["NotificationId"]) && d.IsUser == true && d.IsReaded == false && d.NotificationType != (int)Common.N otificationType.RequestQuoteFromVendor select d); if (NQuery.Count() > 0) { var NQuery1 = NQuery.First(); NQuery1.IsReaded = true; dc.SubmitChanges(); } dc.Connection.Close(); dc.Dispose(); }

You might also like