SmartSql 2.2.0-preview
See the version list below for details.
dotnet add package SmartSql --version 2.2.0-preview
NuGet\Install-Package SmartSql -Version 2.2.0-preview
<PackageReference Include="SmartSql" Version="2.2.0-preview" />
paket add SmartSql --version 2.2.0-preview
#r "nuget: SmartSql, 2.2.0-preview"
// Install SmartSql as a Cake Addin #addin nuget:?package=SmartSql&version=2.2.0-preview&prerelease // Install SmartSql as a Cake Tool #tool nuget:?package=SmartSql&version=2.2.0-preview&prerelease
SmartSql - Documentation
0. Why ?
- Embrace the cross platform. DotNet Core, it's time!
- Based on Dapper, no more wheels are repeated. Dapper performance you know!
1. So SmartSql
- TargetFramework: .NETStandard,Version=v1.3
- SmartSql = Dapper + MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting + ......
2. Feature
- 1 ORM
- 1.1 Sync
- 1.2 Async
- 2 XmlConfig & XmlStatement → Sql
- 2.1 SmartSqlMapConfig & SmartSqlMap √ (Yes, you guessed that, like MyBatis, you separated SQL from the XML configuration.)
- 2.2 Config Hot Update →ConfigWatcher & Reload (Configuration file hot update: when you need to change Sql, modify the SqlMap configuration file directly and save it.)
- 3 Read-write separation
- 3.1 Read-write separation
- 3.2 Election of the read database by weight
- 4 Logging √
- 4.1 Base on Microsoft.Extensions.Logging.Abstractions (When you need to track the debugging when everything is so clear at a glance)
- 5 DAO
- 5.1 DAO
- 5.2 DAO Tool
- 5.2.1 Template Xml & Entity & DAO
- 5.2.2 Generate Tool
- 6 Query Cache
- 6.1 SmartSql.Cache.Memory
- 6.1.1 Fifo
- 6.1.2 Lru
- 6.2 SmartSql.Cache.Redis
- 6.3 Cache transaction consistency
- 6.1 SmartSql.Cache.Memory
- 7 Distributed configuration plugin
- 7.1 IConfigLoader
- 7.2 LocalFileConfigLoader √ (Local file configuration loader)
- 7.2.1 Load SmartSqlMapSource Xml √
- 7.3.1 Load SmartSqlMapSource Directory √
- 7.3 SmartSql.ZooKeeperConfig √ (Distributed configuration file loader by ZooKeeper)
3. Performance
Query Times:1000000
ORM | Total(ms) |
---|---|
SmartSql | 63568 |
Dapper | 60023 |
MyBaits | 83566 |
Query Times:100000
ORM | Total(ms) |
---|---|
SmartSql | 6075 |
Dapper | 5931 |
MyBaits | 6574 |
Product | Versions 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net46 is compatible. 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 | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6
- Dapper (>= 1.50.2)
- Microsoft.Extensions.Logging.Abstractions (>= 1.1.2)
-
.NETStandard 1.3
- Dapper (>= 1.50.2)
- Microsoft.Extensions.Logging.Abstractions (>= 1.1.2)
- NETStandard.Library (>= 1.6.1)
- System.IO.FileSystem.Watcher (>= 4.3.0)
- System.Threading.Thread (>= 4.3.0)
- System.Xml.XmlSerializer (>= 4.3.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETStandard 2.0
- Dapper (>= 1.50.2)
- Microsoft.Extensions.Logging.Abstractions (>= 1.1.2)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on SmartSql:
Package | Downloads |
---|---|
SmartSql.DyRepository
SmartSql = MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting +Dynamic Repository .... |
|
SmartSql.DIExtension
SmartSql = MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting +Dynamic Repository .... |
|
SmartSql.Bulk
SmartSql = MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting +Dynamic Repository .... |
|
SmartSql.TypeHandler
SmartSql = MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting +Dynamic Repository .... |
|
SmartSql.ScriptTag
SmartSql = MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting +Dynamic Repository .... |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on SmartSql:
Repository | Stars |
---|---|
SkyAPM/SkyAPM-dotnet
The .NET/.NET Core instrument agent for Apache SkyWalking
|
|
ElderJames/shriek-fx
An easy-to-use rapid development framework developed on the basis of.NET Core 2.0, following the constraints of domain Driven Design (DDD) specifications, combined with the CQRS architecture to provide the infrastructure for event-driven, event backtracking, responsiveness, and more. Let developers enjoy the true meaning of object-oriented design patterns brought by the aesthetic.
|
|
dotnetcore/SmartCode
SmartCode = IDataSource -> IBuildTask -> IOutput => Build Everything!!!
|
|
lindexi/lindexi_gd
博客用到的代码
|
Version | Downloads | Last updated |
---|---|---|
4.1.67 | 9,417 | 10/19/2023 |
4.1.66 | 1,959 | 9/21/2023 |
4.1.65 | 1,216 | 9/21/2023 |
4.1.64 | 26,689 | 5/13/2022 |
4.1.63 | 6,322 | 5/4/2022 |
4.1.62 | 6,230 | 4/29/2022 |
4.1.59 | 7,061 | 3/10/2022 |
4.1.58 | 6,616 | 3/3/2022 |
4.1.57 | 12,998 | 11/17/2020 |
4.1.56 | 8,319 | 7/14/2020 |
4.1.55 | 5,677 | 6/18/2020 |
4.1.54 | 4,726 | 6/12/2020 |
4.1.53 | 5,746 | 4/8/2020 |
4.1.52 | 5,828 | 3/27/2020 |
4.1.51 | 4,927 | 3/21/2020 |
4.1.50 | 7,164 | 3/9/2020 |
4.1.48 | 4,486 | 3/5/2020 |
4.1.46 | 4,724 | 12/18/2019 |
4.1.45 | 4,436 | 12/18/2019 |
4.1.44 | 5,191 | 12/5/2019 |
4.1.43 | 4,550 | 11/20/2019 |
4.1.42 | 4,831 | 11/18/2019 |
4.1.40 | 4,432 | 11/12/2019 |
4.1.39 | 4,592 | 11/6/2019 |
4.1.38 | 4,538 | 10/29/2019 |
4.1.37 | 4,441 | 10/29/2019 |
4.1.36 | 4,481 | 10/29/2019 |
4.1.35 | 4,437 | 10/29/2019 |
4.1.34 | 4,396 | 10/28/2019 |
4.1.33 | 4,440 | 10/28/2019 |
4.1.32 | 13,578 | 9/30/2019 |
4.1.31 | 4,460 | 9/29/2019 |
4.1.30 | 4,455 | 9/27/2019 |
4.1.29 | 4,374 | 9/26/2019 |
4.1.28 | 4,682 | 9/2/2019 |
4.1.27 | 4,386 | 8/30/2019 |
4.1.26 | 4,447 | 8/30/2019 |
4.1.25 | 4,499 | 8/30/2019 |
4.1.24 | 4,559 | 8/28/2019 |
4.1.23 | 9,739 | 8/20/2019 |
4.1.22 | 4,369 | 8/19/2019 |
4.1.21 | 4,588 | 8/13/2019 |
4.1.20 | 4,522 | 8/13/2019 |
4.1.19 | 4,558 | 8/13/2019 |
4.1.18 | 12,354 | 8/5/2019 |
4.1.17 | 4,497 | 8/1/2019 |
4.1.16 | 4,451 | 8/1/2019 |
4.1.15 | 4,436 | 7/30/2019 |
4.1.14 | 4,361 | 7/30/2019 |
4.1.12 | 4,477 | 7/30/2019 |
4.1.11 | 4,543 | 7/30/2019 |
4.1.9 | 4,490 | 7/29/2019 |
4.1.8 | 4,492 | 7/29/2019 |
4.1.7 | 4,410 | 7/29/2019 |
4.1.6 | 4,466 | 7/29/2019 |
4.1.5 | 4,404 | 7/27/2019 |
4.1.3 | 4,445 | 7/26/2019 |
4.1.2 | 4,445 | 7/25/2019 |
4.1.1 | 4,229 | 7/25/2019 |
4.1.0 | 4,401 | 7/24/2019 |
4.0.88 | 4,348 | 7/24/2019 |
4.0.86 | 5,061 | 7/22/2019 |
4.0.85 | 4,373 | 7/22/2019 |
4.0.84 | 4,342 | 7/22/2019 |
4.0.81 | 4,558 | 7/19/2019 |
4.0.80 | 4,328 | 7/19/2019 |
4.0.78 | 4,339 | 7/19/2019 |
4.0.76 | 4,529 | 7/17/2019 |
4.0.75 | 6,698 | 7/10/2019 |
4.0.73 | 4,510 | 7/10/2019 |
4.0.72 | 4,598 | 7/5/2019 |
4.0.71 | 4,664 | 6/25/2019 |
4.0.70 | 4,472 | 6/25/2019 |
4.0.69 | 4,408 | 6/25/2019 |
4.0.68 | 4,430 | 6/20/2019 |
4.0.66 | 4,549 | 6/18/2019 |
4.0.65 | 4,548 | 6/17/2019 |
4.0.63 | 6,129 | 6/12/2019 |
4.0.62 | 4,565 | 6/12/2019 |
4.0.60 | 4,518 | 6/11/2019 |
4.0.59 | 4,372 | 6/11/2019 |
4.0.58 | 4,590 | 6/3/2019 |
4.0.56 | 4,433 | 5/31/2019 |
4.0.55 | 4,328 | 5/30/2019 |
4.0.53 | 4,253 | 5/30/2019 |
4.0.52 | 4,334 | 5/30/2019 |
4.0.51 | 4,210 | 5/30/2019 |
4.0.50 | 4,341 | 5/29/2019 |
4.0.49 | 4,442 | 5/29/2019 |
4.0.48 | 4,347 | 5/24/2019 |
4.0.46 | 5,344 | 5/15/2019 |
4.0.45 | 4,099 | 5/10/2019 |
4.0.44 | 3,903 | 5/7/2019 |
4.0.43 | 3,828 | 5/7/2019 |
4.0.42 | 4,062 | 4/28/2019 |
4.0.41 | 3,788 | 4/28/2019 |
4.0.40 | 3,863 | 4/26/2019 |
4.0.38 | 3,927 | 4/26/2019 |
4.0.36 | 3,958 | 4/25/2019 |
4.0.35 | 3,950 | 4/25/2019 |
4.0.34 | 3,772 | 4/23/2019 |
4.0.33 | 3,895 | 4/19/2019 |
4.0.32 | 3,901 | 4/19/2019 |
4.0.30 | 3,795 | 4/19/2019 |
4.0.29 | 3,608 | 4/18/2019 |
4.0.28 | 3,667 | 4/18/2019 |
4.0.26 | 3,642 | 4/18/2019 |
4.0.25 | 3,694 | 4/17/2019 |
4.0.21 | 3,665 | 4/17/2019 |
4.0.20 | 3,693 | 4/16/2019 |
4.0.19 | 3,747 | 4/15/2019 |
4.0.18 | 3,687 | 4/15/2019 |
4.0.16 | 3,688 | 4/11/2019 |
4.0.15 | 3,637 | 4/11/2019 |
4.0.14 | 3,752 | 4/9/2019 |
4.0.13 | 3,693 | 4/9/2019 |
4.0.12 | 3,768 | 4/4/2019 |
4.0.11 | 3,675 | 4/4/2019 |
4.0.10 | 1,104 | 4/3/2019 |
4.0.9 | 682 | 4/3/2019 |
4.0.8 | 1,072 | 4/3/2019 |
4.0.7 | 1,064 | 4/3/2019 |
4.0.6 | 1,026 | 4/3/2019 |
4.0.5 | 1,093 | 4/2/2019 |
4.0.4 | 1,089 | 4/2/2019 |
4.0.3 | 4,974 | 4/2/2019 |
4.0.2 | 1,064 | 4/1/2019 |
4.0.1 | 903 | 4/1/2019 |
4.0.0 | 4,345 | 4/1/2019 |
4.0.0-rc999 | 699 | 3/31/2019 |
4.0.0-rc998 | 637 | 3/29/2019 |
4.0.0-rc997 | 1,193 | 3/29/2019 |
4.0.0-rc996 | 1,740 | 3/29/2019 |
4.0.0-rc995 | 613 | 3/28/2019 |
4.0.0-rc994 | 607 | 3/28/2019 |
4.0.0-rc993 | 1,555 | 3/28/2019 |
4.0.0-rc991 | 660 | 3/27/2019 |
4.0.0-rc990 | 646 | 3/27/2019 |
4.0.0-rc99 | 667 | 3/27/2019 |
4.0.0-rc98 | 644 | 3/26/2019 |
4.0.0-rc97 | 653 | 3/26/2019 |
4.0.0-rc96 | 1,434 | 3/26/2019 |
4.0.0-rc95 | 1,807 | 3/25/2019 |
4.0.0-rc93 | 977 | 3/25/2019 |
4.0.0-rc92 | 935 | 3/25/2019 |
4.0.0-rc91 | 1,263 | 3/22/2019 |
4.0.0-rc9 | 1,181 | 3/22/2019 |
4.0.0-rc8 | 739 | 3/21/2019 |
4.0.0-rc6 | 822 | 3/21/2019 |
4.0.0-rc5 | 643 | 3/20/2019 |
4.0.0-rc3 | 767 | 3/18/2019 |
4.0.0-rc2 | 440 | 3/18/2019 |
4.0.0-rc10 | 632 | 3/22/2019 |
4.0.0-rc1 | 2,107 | 3/17/2019 |
4.0.0-beta5 | 1,226 | 3/16/2019 |
4.0.0-beta4 | 669 | 3/11/2019 |
4.0.0-beta3 | 635 | 3/9/2019 |
4.0.0-beta2 | 1,359 | 3/8/2019 |
4.0.0-beta1 | 1,357 | 3/7/2019 |
3.8.15 | 1,330 | 4/26/2019 |
3.8.13 | 690 | 4/9/2019 |
3.8.12 | 2,301 | 12/17/2018 |
3.8.9 | 678 | 3/26/2019 |
3.8.8 | 1,219 | 12/5/2018 |
3.8.6 | 1,192 | 11/29/2018 |
3.8.5 | 819 | 11/29/2018 |
3.8.4 | 1,945 | 11/9/2018 |
3.8.2 | 2,352 | 10/30/2018 |
3.8.0 | 1,471 | 10/29/2018 |
3.7.16 | 3,549 | 10/26/2018 |
3.7.15 | 1,996 | 10/24/2018 |
3.7.15-rc4 | 623 | 10/24/2018 |
3.7.15-rc2 | 678 | 10/23/2018 |
3.7.13 | 1,236 | 10/22/2018 |
3.7.12 | 844 | 10/22/2018 |
3.7.11 | 1,300 | 10/21/2018 |
3.7.10 | 1,330 | 10/11/2018 |
3.7.9 | 1,092 | 10/10/2018 |
3.7.8 | 1,320 | 9/30/2018 |
3.7.6 | 1,079 | 9/28/2018 |
3.7.5 | 1,054 | 9/26/2018 |
3.7.3 | 866 | 9/26/2018 |
3.7.2 | 861 | 9/25/2018 |
3.7.1 | 897 | 9/25/2018 |
3.7.0 | 1,310 | 9/18/2018 |
3.7.0-pre6 | 706 | 9/17/2018 |
3.6.9 | 895 | 9/16/2018 |
3.6.8.2 | 911 | 9/12/2018 |
3.6.8.1 | 1,167 | 9/9/2018 |
3.6.7 | 1,321 | 9/7/2018 |
3.6.5 | 2,218 | 9/1/2018 |
3.6.4 | 1,252 | 8/28/2018 |
3.6.2 | 1,125 | 8/23/2018 |
3.6.1 | 1,366 | 8/13/2018 |
3.6.0 | 1,747 | 8/8/2018 |
3.6.0-rc2 | 820 | 8/7/2018 |
3.6.0-rc1 | 791 | 8/5/2018 |
3.6.0-pre9 | 779 | 8/5/2018 |
3.6.0-pre8 | 840 | 8/5/2018 |
3.6.0-pre6 | 848 | 8/4/2018 |
3.6.0-pre3 | 724 | 8/3/2018 |
3.6.0-pre1 | 903 | 8/3/2018 |
3.5.14 | 944 | 8/2/2018 |
3.5.13 | 967 | 8/2/2018 |
3.5.12 | 954 | 8/2/2018 |
3.5.11 | 935 | 8/2/2018 |
3.5.10 | 957 | 8/1/2018 |
3.5.9 | 893 | 8/1/2018 |
3.5.8 | 1,402 | 7/31/2018 |
3.5.5 | 1,349 | 7/31/2018 |
3.5.3 | 2,115 | 7/25/2018 |
3.5.2 | 938 | 7/25/2018 |
3.5.1 | 1,161 | 7/25/2018 |
3.5.0 | 1,323 | 7/24/2018 |
3.5.0-pre2 | 894 | 7/23/2018 |
3.5.0-pre1 | 751 | 7/21/2018 |
3.4.8 | 1,581 | 7/19/2018 |
3.4.6 | 1,342 | 7/19/2018 |
3.4.3 | 1,049 | 7/19/2018 |
3.4.2 | 1,037 | 7/18/2018 |
3.4.0 | 1,029 | 7/18/2018 |
3.3.18 | 1,826 | 7/13/2018 |
3.3.16 | 968 | 7/12/2018 |
3.3.12 | 1,026 | 7/12/2018 |
3.3.11 | 1,211 | 7/5/2018 |
3.3.10 | 1,012 | 7/4/2018 |
3.3.8 | 1,332 | 7/1/2018 |
3.3.6 | 2,077 | 6/26/2018 |
3.3.4 | 2,018 | 6/26/2018 |
3.3.3 | 1,274 | 6/25/2018 |
3.3.1 | 1,640 | 6/13/2018 |
3.2.0 | 1,714 | 6/11/2018 |
3.1.0 | 1,477 | 6/9/2018 |
3.0.1 | 1,460 | 6/4/2018 |
3.0.0 | 2,541 | 6/2/2018 |
3.0.0-rc93 | 882 | 6/1/2018 |
3.0.0-rc92 | 1,029 | 5/31/2018 |
3.0.0-rc91 | 951 | 5/30/2018 |
3.0.0-rc8 | 827 | 5/29/2018 |
3.0.0-rc6 | 1,313 | 5/28/2018 |
3.0.0-rc5 | 916 | 5/27/2018 |
3.0.0-rc4 | 818 | 5/18/2018 |
3.0.0-rc3 | 812 | 5/16/2018 |
3.0.0-pre8 | 1,467 | 5/15/2018 |
3.0.0-pre4 | 943 | 5/12/2018 |
3.0.0-pre3 | 914 | 5/8/2018 |
3.0.0-pre2 | 861 | 5/7/2018 |
3.0.0-pre1 | 872 | 5/6/2018 |
2.3.2 | 2,705 | 3/25/2018 |
2.3.0 | 1,299 | 3/24/2018 |
2.2.8 | 1,510 | 3/8/2018 |
2.2.6 | 1,173 | 3/6/2018 |
2.2.2 | 1,368 | 2/5/2018 |
2.2.1 | 1,701 | 12/27/2017 |
2.2.0.2 | 1,361 | 12/27/2017 |
2.2.0.1 | 3,585 | 11/8/2017 |
2.2.0 | 1,304 | 11/7/2017 |
2.2.0-preview | 935 | 11/3/2017 |
2.1.0-preview2 | 859 | 11/3/2017 |
2.0.18.8 | 1,135 | 10/24/2017 |
2.0.18.6 | 1,245 | 10/13/2017 |
2.0.18.5 | 1,122 | 10/10/2017 |
2.0.18.2 | 1,148 | 10/8/2017 |
2.0.18 | 1,523 | 9/28/2017 |
2.0.16 | 1,575 | 9/19/2017 |
2.0.15 | 1,284 | 9/19/2017 |
2.0.13 | 1,257 | 9/18/2017 |
2.0.12 | 1,252 | 9/18/2017 |
2.0.8 | 1,113 | 9/14/2017 |
2.0.6 | 1,130 | 9/12/2017 |
2.0.5 | 1,225 | 9/1/2017 |
2.0.4 | 1,196 | 8/30/2017 |
2.0.3 | 1,815 | 8/21/2017 |
2.0.0 | 1,405 | 8/16/2017 |
2.0.0-preview3-final | 854 | 8/16/2017 |
2.0.0-preview2-final | 980 | 8/16/2017 |
1.8.8.2 | 1,251 | 8/16/2017 |
1.8.8.1 | 1,198 | 8/15/2017 |
1.8.6.1 | 1,277 | 8/14/2017 |
1.8.6 | 1,245 | 8/11/2017 |
1.8.5 | 1,175 | 8/10/2017 |
1.8.3 | 1,185 | 8/10/2017 |
1.8.2 | 1,169 | 8/10/2017 |
1.8.0 | 1,177 | 8/10/2017 |
1.7.8 | 1,171 | 8/9/2017 |
1.6.7 | 1,291 | 8/8/2017 |
1.6.6 | 2,202 | 7/24/2017 |
1.6.2 | 1,403 | 7/19/2017 |
1.5.9 | 1,274 | 7/11/2017 |
1.5.8.1 | 1,447 | 5/27/2017 |
1.5.8 | 1,565 | 5/25/2017 |
1.5.5 | 1,622 | 5/23/2017 |
1.5.3 | 1,623 | 5/22/2017 |
1.5.2 | 1,648 | 5/22/2017 |
1.5.0 | 1,323 | 5/20/2017 |
1.4.9 | 1,618 | 4/25/2017 |
1.4.8 | 2,252 | 4/25/2017 |
1.4.4 | 1,630 | 4/21/2017 |
1.4.3 | 1,920 | 4/20/2017 |
1.4.2 | 1,877 | 4/20/2017 |
1.3.1 | 1,370 | 4/18/2017 |
1.2.0 | 1,609 | 4/17/2017 |
1.1.0 | 1,283 | 4/13/2017 |
1.0.4 | 1,338 | 4/7/2017 |
1.0.2 | 1,670 | 4/3/2017 |
0. add [For Tag] to support iterate.
1. add support global parameter prefix (defalut=$).
2. add [Env Tag] to support different DBProvider.
3. update Schemas to support above features.