-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
framework/Fur/DatabaseAccessor/MultiTenants/Providers/IMultiTenantOnDatabaseProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Fur 是 .NET 5 平台下极易入门、极速开发的 Web 应用框架。 | ||
// Copyright © 2020 Fur, Baiqian Co.,Ltd. | ||
// | ||
// 框架名称:Fur | ||
// 框架作者:百小僧 | ||
// 框架版本:1.0.0 | ||
// 官方网站:https://chinadot.net | ||
// 源码地址:Gitee:https://gitee.com/monksoul/Fur | ||
// Github:https://github.com/monksoul/Fur | ||
// 开源协议:Apache-2.0(http://www.apache.org/licenses/LICENSE-2.0) | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace Fur.DatabaseAccessor | ||
{ | ||
/// <summary> | ||
/// 基于多个数据库多租户模式 | ||
/// </summary> | ||
public interface IMultiTenantOnDatabaseProvider : IMultiTenantProviderDependency | ||
{ | ||
/// <summary> | ||
/// 获取数据库连接字符串 | ||
/// </summary> | ||
/// <returns></returns> | ||
string GetDatabaseConnectionString(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
framework/Fur/DatabaseAccessor/MultiTenants/Providers/IMultiTenantOnSchemaProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Fur 是 .NET 5 平台下极易入门、极速开发的 Web 应用框架。 | ||
// Copyright © 2020 Fur, Baiqian Co.,Ltd. | ||
// | ||
// 框架名称:Fur | ||
// 框架作者:百小僧 | ||
// 框架版本:1.0.0 | ||
// 官方网站:https://chinadot.net | ||
// 源码地址:Gitee:https://gitee.com/monksoul/Fur | ||
// Github:https://github.com/monksoul/Fur | ||
// 开源协议:Apache-2.0(http://www.apache.org/licenses/LICENSE-2.0) | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace Fur.DatabaseAccessor | ||
{ | ||
/// <summary> | ||
/// 基于数据库架构的多租户模式 | ||
/// </summary> | ||
public interface IMultiTenantOnSchemaProvider : IMultiTenantProviderDependency | ||
{ | ||
/// <summary> | ||
/// 获取数据库架构名称 | ||
/// </summary> | ||
/// <returns></returns> | ||
string GetSchemaName(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
framework/Fur/DatabaseAccessor/MultiTenants/Providers/IMultiTenantProviderDependency.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Fur 是 .NET 5 平台下极易入门、极速开发的 Web 应用框架。 | ||
// Copyright © 2020 Fur, Baiqian Co.,Ltd. | ||
// | ||
// 框架名称:Fur | ||
// 框架作者:百小僧 | ||
// 框架版本:1.0.0 | ||
// 官方网站:https://chinadot.net | ||
// 源码地址:Gitee:https://gitee.com/monksoul/Fur | ||
// Github:https://github.com/monksoul/Fur | ||
// 开源协议:Apache-2.0(http://www.apache.org/licenses/LICENSE-2.0) | ||
// ----------------------------------------------------------------------------- | ||
|
||
namespace Fur.DatabaseAccessor | ||
{ | ||
/// <summary> | ||
/// 多租户提供器依赖接口(禁止外部继承) | ||
/// </summary> | ||
public interface IMultiTenantProviderDependency | ||
{ | ||
} | ||
} |