Books.Server.BooksService.PrivateSqlTestMethod C# (CSharp) Method

PrivateSqlTestMethod() private static method

private static PrivateSqlTestMethod ( ) : void
return void
        private static void PrivateSqlTestMethod()
        {
            using (var conn = GetSqlServerConnection())
            {
                var cmd = conn.CreateCommand();
                cmd.CommandText = "select * from person";
                cmd.Connection = conn;

                var profiler = Profiler.Instance;
                using (profiler.Step("SqlGetPerson"))
                {
                    conn.Open();
                    using (var reader = cmd.ExecuteReader())
                    {
                        while (reader.Read())
                        {
                            string value = reader[2].ToString();
                        }
                    }
                }
            }
        }