Chisle
The coding-agent plugin that bills 52% of a bare model across 20 live tasks. Terse persona + tool-output compressor + context diet.
翻訳待ち
Linq to database provider.
翻訳待ち
開発ツールC# · F#GitHub @linq2db自分でインストール所有者未確認
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗LINQ to DB is the fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCOs and your database.
Architecturally it is one step above micro-ORMs like Dapper, Massive, or PetaPoco, in that you work with LINQ expressions, not with magic strings, while maintaining a thin abstraction layer between your code and the database. Your queries are checked by the C# compiler and allow for easy refactoring.
However, it's not as heavy as LINQ to SQL or Entity Framework. There is no change-tracking, so you have to manage that yourself, but on the positive side you get more control and faster access to your data.
In other words LINQ to DB is type-safe SQL.
LINQ to DB also very nice for F# developers (see Tests/FSharp and Source/LinqToDB.FSharp project for details).
Development version nugets feeds (how to use)
See Github.io documentation for more details.
Code examples and demos can be found here or in tests.
Release notes page.
Notable open-source users:
Unmantained projects:
You can simply pass connection string into DataConnection or DataContext constructor using DataOptions class.
Minimal configuration example:
var db = new DataConnection(
new DataOptions()
.UseSqlServer(@"Server=.\;Database=Northwind;Trusted_Connection=True;"));
Use connection configuration action to setup SqlClient-specific authentication token:
var options = new DataOptions()
.UseSqlServer(connectionString, SqlServerVersion.v2017, SqlServerProvider.MicrosoftDataSqlClient)
.UseBeforeConnectionOpened(cn =>
{
((SqlConnection)cn).AccessToken = accessToken;
});
// pass configured options to data context constructor
var dc = new DataContext(options);
[!TIP] There are a lot of configuration methods on
DataOptionsyou can use.
[!TIP] It is recommended to create configured
DataOptionsinstance once and use it everywhere. E.g. you can register it in your DI container.
In your web.config or app.config make sure you have a connection string (check this file for supported providers):
<connectionStrings>
<add name="Northwind"
connectionString = "Server=.\;Database=Northwind;Trusted_Connection=True;"
providerName = "SqlServer" />
</connectionStrings>
Alternatively, you can implement custom settings provider with ILinqToDBSettings interface, for example:
This is the beginning of the README. Read the rest at the original. Read the full README ↗