Files
SqlSugar/Src/Asp.NetCore2/MongoDb.Ado.data/HandlerContext.cs

18 lines
589 B
C#
Raw Normal View History

2025-07-11 17:20:42 +08:00
using MongoDB.Driver;
using System;
2025-05-04 18:39:11 +08:00
using System.Collections.Generic;
2025-07-11 17:20:42 +08:00
using System.Data.Common;
2025-05-04 18:39:11 +08:00
using System.Text;
namespace MongoDb.Ado.data
{
public class HandlerContext
{
public string[] ids { get; set; }
2025-07-11 17:20:42 +08:00
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; } }
2025-05-04 18:39:11 +08:00
}
}