Skip to content

Commit c1e1042

Browse files
committed
[#47]支持配置创建分表分库无需通过接口
1 parent 31b62f4 commit c1e1042

File tree

86 files changed

+3911
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3911
-442
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
---
77

88
<div align="center">
9-
<p> <a href="https://gitee.com/dotnetchina/sharding-core">Gitee Star</a> 助力dotnet 生态 <a href="https://github.com/xuejmnet/sharding-core">Github Star</a> </p>
9+
<p><a href="https://github.com/xuejmnet/sharding-core">Github Source Code</a> 助力dotnet 生态 <a href="https://gitee.com/dotnetchina/sharding-core">Gitee Source Code</a> </p>
1010
</div>
1111

1212
---

samples/Sample.BulkConsole/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using System.Collections.Generic;
1111
using System.Diagnostics;
1212
using System.Linq;
13+
using ShardingCore.Bootstrapers;
1314
using ShardingCore.Extensions.ShardingPageExtensions;
1415

1516
namespace Sample.BulkConsole

samples/Sample.Migrations/DefaultDesignTimeDbContextFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Microsoft.Extensions.DependencyInjection;
99
using Sample.Migrations.EFCores;
1010
using ShardingCore;
11+
using ShardingCore.Bootstrapers;
1112

1213
namespace Sample.Migrations
1314
{

samples/Sample.Migrations/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Microsoft.EntityFrameworkCore.Migrations;
1414
using Sample.Migrations.EFCores;
1515
using ShardingCore;
16+
using ShardingCore.Bootstrapers;
1617

1718
namespace Sample.Migrations
1819
{

samples/Sample.MySql/DIExtension.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Sample.MySql.DbContexts;
77
using Sample.MySql.Domain.Entities;
88
using ShardingCore;
9+
using ShardingCore.Bootstrapers;
910
using ShardingCore.DbContexts.VirtualDbContexts;
1011
using ShardingCore.Extensions;
1112

samples/Sample.SqlServer/DIExtension.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Sample.SqlServer.DbContexts;
88
using Sample.SqlServer.Domain.Entities;
99
using ShardingCore;
10+
using ShardingCore.Bootstrapers;
1011

1112
namespace Sample.SqlServer
1213
{

samples/Sample.SqlServer/Domain/Entities/SysUserMod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class SysUserMod : IShardingTable
1717
/// <summary>
1818
/// 用户Id用于分表
1919
/// </summary>
20-
[ShardingTableKey(TailPrefix = "_")]
20+
[ShardingTableKey(TableSeparator = "_")]
2121
public string Id { get; set; }
2222
/// <summary>
2323
/// 用户名称

samples/Sample.SqlServer3x/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using Microsoft.EntityFrameworkCore;
1313
using Sample.SqlServer3x.Domain.Entities;
1414
using ShardingCore;
15+
using ShardingCore.Bootstrapers;
1516

1617
namespace Sample.SqlServer3x
1718
{

samples/Sample.SqlServerShardingDataSource/DIExtension.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Sample.SqlServerShardingDataSource.DbContexts;
77
using Sample.SqlServerShardingDataSource.Domain.Entities;
88
using ShardingCore;
9+
using ShardingCore.Bootstrapers;
910

1011
namespace Sample.SqlServerShardingDataSource
1112
{

samples/Samples.AutoByDate.SqlServer/DIExtension.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Microsoft.AspNetCore.Builder;
22
using Microsoft.Extensions.DependencyInjection;
33
using ShardingCore;
4+
using ShardingCore.Bootstrapers;
45

56
namespace Samples.AutoByDate.SqlServer
67
{

0 commit comments

Comments
 (0)