Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrapper for SQL queries

Tags:

.net

sql

wrapper

I have one idea to write library for .NET. This library will be object wrapper for SQL queries, this is not ORM, this is easy tool to avoid hardcode SQL in small projects. For example of using:

var query = Query.Select("Name")
                 .From("Product")
                 .Where("Price", Operator.MoreThan, 5);
string result = query.Build();

in result you get generated SQL code:

SELECT Name FROM Product WHERE Product.Price > 5

Does anybody know similar libraries for .NET ?

like image 335
Eugene Gluhotorenko Avatar asked Nov 04 '22 20:11

Eugene Gluhotorenko


1 Answers

Entity Framework or LINQ to SQL. It should be noted that EF is seeing much more active development.

like image 200
DeveloperX Avatar answered Nov 15 '22 05:11

DeveloperX