I have a database which does not provide (yet) c# client library, only a binary tcp or http rest protocol.
I have to write an application that can perform various operations on the DB : CRUD, management, etc.
These operation are expressed in a sql query, with select/insert/update/delete and custom keywords for DB-specific operations.
I'm wondering what is the path to this result. I can ask the question in two point of views : in an ideal world, and in a practical world.
I'd appreciate any feedback !What is the recommended approach, problems encountered, etc.
PS: I'm thinking over these approaches :
- writing a custom ADO.Net provider (IDbCommand, IDbConnection, etc.)
- writing a custom linq provider (which relies on the former)
- maybe writing a EF provider
MyDB repo = new MyDB(); repo.Load<Customer>((c)=>c.CompanyName=="foo corp");or something like this