Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Delete Record Using Linq

$
0
0
 DataContext db = new DataContext();
 List <Sub> Sc = new List<Sub>();
        Sc = (from SC in db.SubC
                where SC.Bid == BoqId&& SC.Sub_Con_id == ScId
                select SC).ToList();

        Sc.....??????
So I have the record I want, now I want to remove it from the DB....Sc...?
Any help thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>