diff --git a/AOP.md b/AOP.md index 69872cd..7b1f49f 100644 --- a/AOP.md +++ b/AOP.md @@ -135,6 +135,6 @@ fsql.Aop.ParseExpression += (s, e) => { * [《CodeFirst模式之四:类型映射》](https://github.com/2881099/FreeSql/wiki/%e7%b1%bb%e5%9e%8b%e6%98%a0%e5%b0%84) * [《CodeFirst模式之五:迁移结构》](https://github.com/2881099/FreeSql/wiki/CodeFirst#%e8%bf%81%e7%a7%bb%e7%bb%93%e6%9e%84) - [《DbFirst模式开发介绍》](https://github.com/2881099/FreeSql/wiki/DbFirst) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \ No newline at end of file diff --git a/DbContext.md b/DbContext.md index dbd26a3..a84dfa1 100644 --- a/DbContext.md +++ b/DbContext.md @@ -272,7 +272,7 @@ DbContext.SaveChanges,或者 Repository 对实体的 Insert/Update/Delete, ## 参考资料 -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) - [《AOP》](https://github.com/2881099/FreeSql/wiki/AOP) diff --git a/Repository.md b/Repository.md index 0fbe48c..21102a1 100644 --- a/Repository.md +++ b/Repository.md @@ -182,7 +182,7 @@ SqlServer 提供的 output inserted 特性,在表使用了自增或数据库 - [《学习FreeSql之四:查询数据》](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2) - [《优化之:延时加载》](https://github.com/2881099/FreeSql/wiki/%e5%bb%b6%e6%97%b6%e5%8a%a0%e8%bd%bd) - [《优化之:贪婪加载》](https://github.com/2881099/FreeSql/wiki/%e8%b4%aa%e5%a9%aa%e5%8a%a0%e8%bd%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) - [《AOP》](https://github.com/2881099/FreeSql/wiki/AOP) diff --git a/事务.md b/事务.md index feff513..72c7ead 100644 --- a/事务.md +++ b/事务.md @@ -153,7 +153,7 @@ using (var uowManager = new UnitOfWorkManager(fsql)) //使用 UnitOfWorkManager - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) - [《仓储层Repository》](https://github.com/2881099/FreeSql/wiki/Repository) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) diff --git a/分页查询.md b/分页查询.md index 32b8b97..74dd428 100644 --- a/分页查询.md +++ b/分页查询.md @@ -59,4 +59,4 @@ SqlServer 2012+ 版本,使用最新的 fetch next rows 分页; - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) diff --git a/单表查询.md b/单表查询.md index f41292f..ece8bc1 100644 --- a/单表查询.md +++ b/单表查询.md @@ -60,5 +60,5 @@ fsql.Select() - [《优化之:贪婪加载》](https://github.com/2881099/FreeSql/wiki/%e8%b4%aa%e5%a9%aa%e5%8a%a0%e8%bd%bd) - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \ No newline at end of file diff --git a/多表查询.md b/多表查询.md index 5494269..840ce23 100644 --- a/多表查询.md +++ b/多表查询.md @@ -219,5 +219,5 @@ WHERE t1.IsDeleted = 0 - [《优化之:贪婪加载》](https://github.com/2881099/FreeSql/wiki/%e8%b4%aa%e5%a9%aa%e5%8a%a0%e8%bd%bd) - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \ No newline at end of file diff --git a/安装.md b/安装.md index e6ef296..4778156 100644 --- a/安装.md +++ b/安装.md @@ -30,7 +30,6 @@ dotnet add package FreeSql | FreeSql.Extensions.JsonMap | NETStandard2.0、net45、net40 | Json 序列化扩展包 | | FreeSql.Extensions.Linq | NETStandard2.0、net45、net40 | LinqToSql IQueryable 扩展包 | | FreeSql.Extensions.BaseEntity | NETStandard2.0 | | -| [FreeSql.Extensions.AdoNet](https://github.com/dotnetcore/FreeSql/blob/master/Extensions/FreeSql.Extensions.AdoNet/readme.md) | NETStandard2.0、net45、net40 | AdoNet 扩展包 | | FreeSql.Extensions.Generator | NETCoreapp3.1 | 从数据库生成实体类,[生成器是如何实现的?](https://www.cnblogs.com/igeekfan/p/freesql-generator.html) | ## 学习指南 @@ -59,7 +58,7 @@ FreeSql 除了支持基本的增删查改功能外,还支持基于现有数据 - [《数据库事务》](https://github.com/2881099/FreeSql/wiki/%e4%ba%8b%e5%8a%a1) - [《使用读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《返回数据》](https://github.com/2881099/FreeSql/wiki/%e8%bf%94%e5%9b%9e%e6%95%b0%e6%8d%ae) - [《优化之:延时加载》](https://github.com/2881099/FreeSql/wiki/%e5%bb%b6%e6%97%b6%e5%8a%a0%e8%bd%bd) diff --git a/工作单元.md b/工作单元.md index cba1ab1..e27e613 100644 --- a/工作单元.md +++ b/工作单元.md @@ -120,7 +120,7 @@ DbContext.SaveChanges,或者 Repository 对实体的 Insert/Update/Delete, - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《仓储层Repository》](https://github.com/2881099/FreeSql/wiki/Repository) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) - [《AOP》](https://github.com/2881099/FreeSql/wiki/AOP) diff --git a/性能.md b/性能.md index 39dfbd0..b97bb69 100644 --- a/性能.md +++ b/性能.md @@ -204,7 +204,7 @@ public void QueryList() { - [《数据库事务》](https://github.com/2881099/FreeSql/wiki/%e4%ba%8b%e5%8a%a1) - [《使用读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《返回数据》](https://github.com/2881099/FreeSql/wiki/%e8%bf%94%e5%9b%9e%e6%95%b0%e6%8d%ae) - [《仓储层Repository》](https://github.com/2881099/FreeSql/wiki/Repository) diff --git a/查询.md b/查询.md index 31471b3..cff455c 100644 --- a/查询.md +++ b/查询.md @@ -13,7 +13,7 @@ FreeSql在查询数据下足了功夫,链式查询语法、多表查询、表 - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) ## 特别介绍 WhereDynamicFilter diff --git a/查询父子关系.md b/查询父子关系.md index 51ccdb8..141a4fa 100644 --- a/查询父子关系.md +++ b/查询父子关系.md @@ -216,5 +216,5 @@ Assert.Equal("中国[100000] -> 北京[110000] -> 东城区[110101]", t4[3].path - [《优化之:贪婪加载》](https://github.com/2881099/FreeSql/wiki/%e8%b4%aa%e5%a9%aa%e5%8a%a0%e8%bd%bd) - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \ No newline at end of file diff --git a/添加.md b/添加.md index 7d8cb43..34b3896 100644 --- a/添加.md +++ b/添加.md @@ -177,7 +177,7 @@ fsql.Insert().MySqlIgnoreInto().AppendData(items).ExecuteAffrows(); - [《学习FreeSql之三:查询数据》](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2) - [《仓储层Repository》](https://github.com/2881099/FreeSql/wiki/Repository) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) ## API diff --git a/读写分离.md b/读写分离.md index 81e40e0..e729bb4 100644 --- a/读写分离.md +++ b/读写分离.md @@ -39,7 +39,7 @@ fsql.Select().Master().WhereId(a => a.Id == 1).ToOne(); //强制读【主库 * [《CodeFirst模式之四:类型映射》](https://github.com/2881099/FreeSql/wiki/%e7%b1%bb%e5%9e%8b%e6%98%a0%e5%b0%84) * [《CodeFirst模式之五:迁移结构》](https://github.com/2881099/FreeSql/wiki/CodeFirst#%e8%bf%81%e7%a7%bb%e7%bb%93%e6%9e%84) - [《DbFirst模式开发介绍》](https://github.com/2881099/FreeSql/wiki/DbFirst) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《过滤器、全局过滤器》](https://github.com/2881099/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《AOP》](https://github.com/2881099/FreeSql/wiki/AOP) \ No newline at end of file diff --git a/过滤器.md b/过滤器.md index 587458a..0ad1921 100644 --- a/过滤器.md +++ b/过滤器.md @@ -152,7 +152,7 @@ repo1.Select.ToSql() - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) - [《读写分离》](https://github.com/2881099/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《AOP》](https://github.com/2881099/FreeSql/wiki/AOP) - [《仓储层Repository》](https://github.com/2881099/FreeSql/wiki/Repository) - [《UnitOfWork》](https://github.com/2881099/FreeSql/wiki/%e5%b7%a5%e4%bd%9c%e5%8d%95%e5%85%83) diff --git a/返回数据.md b/返回数据.md index a0afc20..74f19c3 100644 --- a/返回数据.md +++ b/返回数据.md @@ -173,5 +173,5 @@ A, B, C 都有 id,Dto { id, a1, a2, b1, b2 },A.id 被映射。也可以指 - [《优化之:贪婪加载》](https://github.com/2881099/FreeSql/wiki/%e8%b4%aa%e5%a9%aa%e5%8a%a0%e8%bd%bd) - [《Expression 表达式函数》](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) - [《性能》](https://github.com/2881099/FreeSql/wiki/%e6%80%a7%e8%83%bd) -- [《分区、分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) +- [《分表、分库》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) - [《租户》](https://github.com/2881099/FreeSql/wiki/%e7%a7%9f%e6%88%b7) \ No newline at end of file diff --git a/骚操作.md b/骚操作.md index b0c09e7..9a6e6bf 100644 --- a/骚操作.md +++ b/骚操作.md @@ -466,6 +466,8 @@ class Order { 提供了类似 Dapper 的使用方法,FreeSql 增加了 IDbConnection/IDbTransaction 对象的扩展方法 Select/Insert/Update/Delete 实现 CRUD。 ```csharp +using FreeSql; + using (var conn = new SqlConnection(...)) { IFreeSql fsql = conn.GetIFreeSql();