ShadowSql.Dapper.Core 0.8.0.3-alpha

This is a prerelease version of ShadowSql.Dapper.Core.
dotnet add package ShadowSql.Dapper.Core --version 0.8.0.3-alpha
                    
NuGet\Install-Package ShadowSql.Dapper.Core -Version 0.8.0.3-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ShadowSql.Dapper.Core" Version="0.8.0.3-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShadowSql.Dapper.Core" Version="0.8.0.3-alpha" />
                    
Directory.Packages.props
<PackageReference Include="ShadowSql.Dapper.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ShadowSql.Dapper.Core --version 0.8.0.3-alpha
                    
#r "nuget: ShadowSql.Dapper.Core, 0.8.0.3-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ShadowSql.Dapper.Core&version=0.8.0.3-alpha&prerelease
                    
Install ShadowSql.Dapper.Core as a Cake Addin
#tool nuget:?package=ShadowSql.Dapper.Core&version=0.8.0.3-alpha&prerelease
                    
Install ShadowSql.Dapper.Core as a Cake Tool

ShadowSql.Dapper.Core

  • ShadowSql.Core的Dapper扩展
  • 用于执行ShadowSql.Core拼接的sql

以下简单示例

1. 读取一张表

    var table = SimpleDB.From("Students");        
    var count = table.Count(Executor);
    var select = new TableSelect(table);
    var students = select.Get<Student>(Executor);

2. 分页查询

    var table = new StudentTable("Students");
    var query = new TableSqlQuery(table)
        .Where(table.Age.GreaterEqualValue(9));
    var count = query.Count(Executor);
    var cursor = new TableCursor(query)
        .Desc(table.Id)
        .Skip(1)
        .Take(10);
    var select = new TableSelect(cursor);
    var students = select.Get<Student>(Executor);

3. 删除

    var table = new StudentTable();
    var query = new TableSqlQuery(table)
        .Where(table.Age.LessValue(7));
    var delete = new TableDelete(table, query.Filter);
    var result = Executor.Execute(delete);

4. 更新

    var table = new StudentTable();
    var query = new TableSqlQuery(table)
        .Where(table.Age.LessValue(7));
    var update = new TableUpdate(table, query.Filter)
        .Set(table.ClassId.EqualToValue(1));
    var result = SqliteExecutor.Execute(update);

5. 插入

    var table = _db.From("Students")
        .AddColums(_name, _age);
    var insert = new SingleInsert(table)
        .Insert(_name.InsertValue("张三"))
        .Insert(_age.InsertValue(11));
    var result = insert.Execute(Executor);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ShadowSql.Dapper.Core:

Package Downloads
ShadowSql.Dapper

ShadowSql的Dapper扩展

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.8.0.3-alpha 89 4/13/2025
0.8.0.1-alpha 83 4/11/2025