R
R
roman_CH2019-01-06 17:36:12
ASP.NET
roman_CH, 2019-01-06 17:36:12

How to read DBF in ASP.net core?

How to read DBF in ASP.net core?
I can't think of anything since there is no OdbcConnection in CORE, how can I do the following in ASP.NET CORE?

OdbcConnection conn = new OdbcConnection();
  conn.ConnectionString = 
  "Driver={Microsoft dBASE Driver (*.dbf)};" + 
  "Driverid=277;" + 
  "Dbq=C:\\share\\hotfolder\\";

  conn.Open();

  System.Data.Odbc.OdbcCommand oCmd = conn.CreateCommand();
  oCmd.CommandText = @"SELECT * FROM C:\share\hotfolder\Input.dbf";

  DataTable dt = new DataTable();
  dt.Load(oCmd.ExecuteReader());
  conn.Close();

  dataGridView1.DataSource = dt;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kuznetsov, 2019-01-06
@roman_CH

Have you watched this?
UPD. But didn't you watch this?
As I understand it, they are in .NET Core

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question