Skip to content

Simple library for generate sql queries to MS SQL SERVER

License

Notifications You must be signed in to change notification settings

leandrovip/Vip.SqlQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vip.SqlQuery

License NuGet NuGet Downloads


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. ✌️ 😉

Requirements

.Net Standard 2.0

How to use ?

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]
*/

License

MIT

About

Simple library for generate sql queries to MS SQL SERVER

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages