Shared/Kernelx/Kernelx/Cmpts/MOI/IModelibContext.cs
(完整代码) 1KB using Kernelx.Data;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;
#if NETSTANDARD2_0
using System.Threading.Tasks;
#endif
namespace Kernelx.Cmpts.MOI
{
/// <summary>
/// 模型库上下文
/// </summary>
public interface IModelibContext: IUnitOfWork
{
/// <summary>
///
/// </summary>
/// <returns></returns>
ITransaction BeginTransaction();
/// <summary>
/// 获取当前是否处于事务执行中
/// </summary>
bool IsTransactioning { get; }
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="targetName"></param>
/// <returns></returns>
IModelStore<T> Store<T>(string targetName = null) where T:class, new();
/// <summary>
///
/// </summary>
/// <returns></returns>
IDatabaseCommand GetCurrentCommand();
}
/// <summary>
/// 定义用于实现读写分离的读模型库上下文
/// </summary>
public interface ISlaveModelibContext : IModelibContext { }
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
