Search code examples
ormdapperpetapoconavision

Connect to Navision with Petapoco or Dapper using ODBC


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?


Solution

  • var db = new Database("DSN=MYDSN", "System.Data.Odbc"); db.OpenSharedConnection();