System.Data.DataSet ile Excel'den SQL'e
using IronXL;
using System;
using System.Data;

// Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
WorkBook workBook = WorkBook.Load("sample.xlsx");

// Convert the whole Excel WorkBook to a DataSet
DataSet dataSet = workBook.ToDataSet();

foreach (DataTable table in dataSet.Tables)
{
    Console.WriteLine(table.TableName);

    // Enumerate by rows or columns first at your preference
    foreach (DataRow row in table.Rows)
    {
        for (int i = 0 ; i < table.Columns.Count ; i++)
        {
            Console.Write(row[i]);
        }
    }
}
NuGet Download
PM > Install-Package IronXL.Excel
System.Data.DataSet ile Excel'den SQL'e

System.Data.DataSet ile Excel'den SQL'e

Herhangi bir XLSX, XLS, XLSM, XLTX, CSV ve TSV dosyasını, System.Data.SQL ile tam uyumlu olarak çalışmak veya bir DataGrid doldurmak için bir System.Data.DataTable'ya dönüştürün. Bu DataTable nesnesi tablolar, ilişkiler ve kısıtlamalar koleksiyonu içerebilir.

Learn how to export DataTables in C# with our guide.
GitHub'da Görüntüle

Başlamaya Hazır mısınız?

Nuget Downloads 2,362,812Sürüm:2026.11yeni yayınlandı