Skip to content

Make DataContext.GetDataConnection protected virtual #2146

Closed
@ekalchev

Description

Make DataContext.GetDataConnection protected virtual to allow getting connections from custom connection pools.

Activity

MaceWindu

MaceWindu commented on Mar 27, 2020

@MaceWindu
Contributor

I suspect you need not GetDataConnection override, but just custom DataConnection factory?

https://github.com/linq2db/linq2db/blob/master/Source/LinqToDB/DataContext.cs#L234-L235

ekalchev

ekalchev commented on Mar 27, 2020

@ekalchev
Author

Yes that will do the job

added this to the 2.9.8 milestone on Mar 27, 2020
self-assigned this
on Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Make DataContext.GetDataConnection protected virtual · Issue #2146 · linq2db/linq2db