Files
SqlSugar/Src/Asp.NetCore2/MongoDb.Ado.data/HandlerContext.cs
2025-07-11 17:20:42 +08:00

18 lines
589 B
C#

using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
namespace MongoDb.Ado.data
{
public class HandlerContext
{
public string[] ids { get; set; }
public DbConnection Connection { get; set; }
public MongoDbConnection MongoDbConnection { get { return Connection as MongoDbConnection; } }
public IClientSessionHandle ServerSession { get { return this.MongoDbConnection?.iClientSessionHandle; } }
public bool IsAnyServerSession { get { return ServerSession != null; } }
}
}