Skip to content

A Micro-ORM that allows you to use LINQ expressions to perform queries on your database, using LINQ and fluent API's calls. Providing a tool that simplifies database access using LINQ for developers.

Notifications You must be signed in to change notification settings

cleberMargarida/JustLinq-micro-orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JustLinq

Is a Micro-ORM that allows you to use LINQ expressions to perform queries on your database, using LINQ and fluent API's calls. Unlike other ORMs, this Micro-ORM does not require you to use POCO classes, Mark properties with DataModel attributes, Dataset's abstractions, extensively configurations or complex entity models.

Purpose

The main purpose it's to provide a tool that simplifies database access using LINQ for developers. One of the main advantages of this Micro-ORM is its simplicity in reaching databases, saving developers time and effort, By eliminating the need for complex POCO models and entities. Take your existents models, access it and work with databases easily. Hardware is Cheap, Programmers are Expensive.

How to use it?

  1. Install the JustLinq package using NuGet.
  2. Create an instance of the IDatabase using some provider and a string that represents the connection string to your data source.
  3. Use LINQ expressions to perform queries on your data.

Usage:

var database = new Database(opt => opt.UseSqlServer("ConnectionString"));

var query = database.Query<Employee>();

var result = query.Where(x => x.Name == "Bob Smith" &&
                              x.Email == "[email protected]" &&
                              x.Id > 0)
                  .Select(x => x.Id);

Output query:

SELECT [Employee].[Id]
FROM [Employee] AS [Employee]
WHERE [Employee].[Name] = 'Bob Smith'
    AND [Employee].[Email] = '[email protected]'
    AND [Employee].[Id] > 0

Contributing:

If you would like to contribute to this project, please feel free to submit a pull request. Contributions are always welcome!

License:

This Micro-ORM is licensed under the MIT License. You are free to use, modify, and distribute it as you see fit.

About

A Micro-ORM that allows you to use LINQ expressions to perform queries on your database, using LINQ and fluent API's calls. Providing a tool that simplifies database access using LINQ for developers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages