Unable to get record Id for Insert command using ADO.NET in .NET 4.0

I am working on ADO.NET with NET Framework 4.0 Insert Command. I need to return the primary of created record. I have implemented following code but getting empty value. I want to ensure I get correct Id and not just most recently created as it may be scenario where multiple user trying to add record… Read More Unable to get record Id for Insert command using ADO.NET in .NET 4.0

How can you choose a line that fulfills all the conditions?

How do we know the number of common values between two lines from two different tables? using csharp. table1.row[1]={5,6,3,4,1} table2.row[3]={6,4,16,18,7,’2′} // table2.row[3][5] is char mean number of duplicate value must be to return true (i make it char because i dont want program use this value whenthey do comparison)// in this two table the funcion… Read More How can you choose a line that fulfills all the conditions?