This is a very simple library to generate SELECT queries in SQL SERVER. It is possible generate queries with many columns, prefix, many possibles where´s clause, parameters and more. ✌️ 😉
.Net Standard 2.0
Declare a using:
using Vip.SqlQuery;
Code:
var query = SqlQuery.New()
.Select(new[] {"ProductId" "Product", "Description", "Price", "p"})
.From("Product p")
.OrderBy("p.ProdutoId")
.Build();
Query return:
Console.Write(query.Command)
/*
SELECT [p].[ProductId], [p].[Product], [p].[Description], [p].[Price]
FROM [Product] [p]
ORDER BY [p].[ProdutoId]
*/
MIT