You can use powerful LInQ query in business class. Here is the sample code to fetch the duplicate records before insert.
var dbData = from x in db.tblBuild
where x.Sucess != 0
group x by x.BuildNo into g
let ct = g.Count()
orderby ct
where ct > 1
select new
{
BuildNo = g.First().BuildNo,
StartDate = g.First().StartDate,
EndDate = g.First().EndDate,
Success = g.First().Success,
msg = g.First().msg,
};