-1

I'm trying to connecto to Navision 2.60 using ODBC. I have a static class to manage the odbc connection.

I want to use a ORM for mapping entities like Petapoco or Dapper, does anyone have an example of doing so?

Jeroen
  • 60,696
  • 40
  • 206
  • 339
danywalls
  • 709
  • 1
  • 10
  • 27

2 Answers2

0
var db = new Database("DSN=MYDSN", "System.Data.Odbc"); db.OpenSharedConnection(); 
danywalls
  • 709
  • 1
  • 10
  • 27
  • This will not work. PetaPoco currently does not support ODBC. I tried lot of ways to force PetaPoco to use ODBC. – Ondřej Mar 23 '18 at 10:07
0

As for dapper, there are many many many examples @ Github. Dapper Tests & Examples

And here's some PetaPoco stuff. Peta Poco

Haven't you found anything on google?

Alex
  • 7,901
  • 1
  • 41
  • 56