Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create properties in base repositories to get active transaction/connection #2388

Closed
hikalkan opened this issue Aug 3, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@hikalkan
Copy link
Member

hikalkan commented Aug 3, 2017

Like defined in
https://www.codeproject.com/Articles/1199648/Using-Stored-Procedure-User-Defined-Function-and-V#DocHelperMethods

  • GetActiveTransaction() can be Transaction property with get method.
  • EnsureConnectionOpen can be Connection property and return the connection object.

Such methods can be added to EF, EF Core and NH repository bases. Thus, it would be easier to develop a custom repository.

@hikalkan hikalkan added this to the v2.3 milestone Aug 3, 2017
@natiki
Copy link
Contributor

natiki commented Aug 4, 2017

I would be interested in also adding some of the private methods in there that would make dealing with stored procs, views etc. easier to implement in custom repos. :-)

@hikalkan hikalkan assigned hikalkan and unassigned yekalkan Aug 4, 2017
@natiki
Copy link
Contributor

natiki commented Aug 4, 2017

Bump! In case my comment was missed ;-)

@hikalkan
Copy link
Member Author

hikalkan commented Aug 4, 2017

I haven't missed. But it should be a seperated feature request. "private methods in there that would make dealing with stored procs, views etc. easier" is not a clear definition :) If you create another issue, we consider it for next versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants