Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any open source software for converting SQL statements to LINQ? [closed]

Is there any open source software for converting SQL statements to LINQ?

like image 669
masoud ramezani Avatar asked Feb 27 '23 10:02

masoud ramezani


2 Answers

You cannot convert SQL statements to LINQ queries without having an object model. LINQ queries objects, while SQL queries relational data, so a mapping is necessary between the two worlds.

like image 115
Darin Dimitrov Avatar answered Mar 01 '23 22:03

Darin Dimitrov


Take a look at T4Toolbox - an open source tool on CodePlex that can generate SQL schemas from LINQ and LINQ schema from SQL. Maybe it won't fulfill 100% of your needs, but it's open sourced and therefore extendable.

like image 24
Traveling Tech Guy Avatar answered Mar 02 '23 00:03

Traveling Tech Guy