mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-28 19:18:08 +08:00
26 lines
843 B
C#
26 lines
843 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Util.Data.EntityFrameworkCore;
|
|
using Util.Sessions;
|
|
|
|
namespace Util.Tests.UnitOfWorks {
|
|
/// <summary>
|
|
/// Sqlite工作单元
|
|
/// </summary>
|
|
public class SqliteUnitOfWork : SqliteUnitOfWorkBase, ITestUnitOfWork {
|
|
/// <summary>
|
|
/// 初始化工作单元
|
|
/// </summary>
|
|
/// <param name="serviceProvider">服务提供器</param>
|
|
/// <param name="options">配置项</param>
|
|
public SqliteUnitOfWork( IServiceProvider serviceProvider ,DbContextOptions<SqliteUnitOfWork> options) : base( serviceProvider, options ) {
|
|
}
|
|
|
|
/// <summary>
|
|
/// 设置用户会话
|
|
/// </summary>
|
|
public void SetSession( ISession session ) {
|
|
Session = session;
|
|
}
|
|
}
|
|
} |