<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>SQL</anon>
    <anon>SQLite3</anon>
    <anon>Unity</anon>
  </categories>
  <description>SQLを発行した結果の列名を取得する方法です。 DbDataRecordからSchemaInfoを取得して列名と型を取得しようと思います。 C#でSQLをダイレクトに実行する場合、コネクションを取得しコマンドを発行した後、SqliteDataReader で結果を読み取るのが一般的です。その後、列を foreach で DbDataRecord にして回したりしますが、結果の列名が何か気になるときがあると思います。 この時、DbDataRecord 型を使用していますが、実際は System.Data.Common.DataRecordInternal 型が返ってきていて、この DataRec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2022%2F11%2F11%2F011144&quot; title=&quot;【C#】SQLiteでクエリー結果の列名を取得する - PG日誌&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-11 01:11:44</published>
  <title>【C#】SQLiteでクエリー結果の列名を取得する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2022/11/11/011144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
