We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f81c0e commit 8472bffCopy full SHA for 8472bff
src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs
@@ -77,6 +77,11 @@ internal static BsonDocument CreateDriverDocument(string driverVersion)
77
driverName = $"{driverName}|legacy";
78
}
79
80
+ if (IsEFLoaded())
81
+ {
82
+ driverName = $"{driverName}|efcore";
83
+ }
84
+
85
return new BsonDocument
86
{
87
{ "name", driverName },
@@ -87,6 +92,11 @@ bool IsLegacyLoaded()
92
88
93
return Type.GetType("MongoDB.Driver.MongoServer, MongoDB.Driver.Legacy") != null;
89
94
95
96
+ bool IsEFLoaded()
97
98
+ return Type.GetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore") != null;
99
90
100
91
101
102
internal static BsonDocument CreateEnvDocument()
0 commit comments