Skip to content

AgentFire/AgentFire.Sql.Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentFire.Sql.Tools

Contains some helpful Linq-to-Sql (DataContext-based) classes, which help you simplify your basic CRUD operations.

Usage:

// DbContext is your DataContext class.
var data = DbEntry<DbContext>.PickDataToArray(db =>
{
    return from g in db.Groups
           where g.Name.Contains(name)
           select new { Group = g, IsThisConvenient = (bool?)true };
});

Or:

int id = 123;

DbEntry<DbContext>.Crud.Modify<Group>(id, (db, group) =>
{
    group.Name = "hey";
    group.State = 2;
});

And more.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages