Connect to Navision with Petapoco or Dapper using ODBC

dapper navision orm petapoco

Question

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?

Accepted Answer

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

Popular Answer

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?




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why