mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
18 lines
375 B
C#
18 lines
375 B
C#
using System;
|
|
using System.Data.SqlClient;
|
|
|
|
class Good
|
|
{
|
|
public SqlDataReader GetAllCustomers()
|
|
{
|
|
using (var conn = new SqlConnection("connection string"))
|
|
{
|
|
conn.Open();
|
|
using (var cmd = new SqlCommand("SELECT * FROM Customers", conn))
|
|
{
|
|
return cmd.ExecuteReader();
|
|
}
|
|
}
|
|
}
|
|
}
|