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 b24c5a4 commit 365574eCopy full SHA for 365574e
src/AbpCompanyName.AbpProjectName.EntityFramework/EntityFramework/AbpProjectNameDbContext.cs
@@ -1,4 +1,5 @@
1
-using Abp.EntityFramework;
+using System.Data.Common;
2
+using Abp.EntityFramework;
3
4
namespace AbpCompanyName.AbpProjectName.EntityFramework
5
{
@@ -29,5 +30,18 @@ public AbpProjectNameDbContext(string nameOrConnectionString)
29
30
31
32
}
33
+
34
+ //This constructor is used in tests
35
+ public AbpProjectNameDbContext(DbConnection existingConnection)
36
+ : base(existingConnection, false)
37
+ {
38
39
+ }
40
41
+ public AbpProjectNameDbContext(DbConnection existingConnection, bool contextOwnsConnection)
42
+ : base(existingConnection, contextOwnsConnection)
43
44
45
46
47
0 commit comments