Skip to content

akawa777/Dagent

Repository files navigation

!! Maintenance is canceled. Next ORM is FreestyleOrm. !!

Dagent

Simple microORM for .NET.

Features are as follows:

  1. Easy
  2. Faster
  3. Free

Works with SQL Server, MySQL, and SQLite.

Simple Code

Data manipulation is possible with a simple code. (Checkout the Wiki for more documentation.)

Select

public class Customer
{
    public int CustomerId { get; set; }
    public string Name { get; set; }        
}

DagentDatabase db = new DagentDatabase("connectionStringName");
List<Customer> customers = db.Query<Customer>("select * from Customers").List();

Insert, Update, Delete

Customer customer = new Customer { CustomerId = 1, Name = "Ziba-nyan" };

db.Command<Customer>("Customers", "CustomerId").Insert(customer);

customer.Name = "Buchi-nyan";
db.Command<Customer>("Customers", "CustomerId").Update(customer);

db.Command<Customer>("Customers", "CustomerId").Delete(customer);

Performance

A key feature is performance. The following metrics show how long it takes to execute 500 SELECT statements against a DB and map the data returned to objects.

The performance tests are same test as the Dapper.

Result of Dapper performance test

Alt Text

Pure POCO

Dagent Keep the POCO. Your Class does not need to inherit Class or put Attribute. And is not dependent on SQL and TABLE.

License

The MIT License (MIT)

About

Simple microORM for .NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages