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

Support of transaction in newCommand in Fluent syntax #44

Closed
AnalyzeNCode opened this issue Feb 11, 2022 · 3 comments
Closed

Support of transaction in newCommand in Fluent syntax #44

AnalyzeNCode opened this issue Feb 11, 2022 · 3 comments

Comments

@AnalyzeNCode
Copy link

AnalyzeNCode commented Feb 11, 2022

@pimbrouwers,
Hey, thanks for this lightweight ADO.Net wrapper library.

Do you have any plan to support the transaction in Fluent syntax?
I mostly prefer Fluent syntax and currently there is no any method to pass transaction to the Db.newCommand method.

@pimbrouwers
Copy link
Owner

Good morning! Thank you for that, you are most welcome! Glad you enjoy it.

The function you're looking for is this one:

let setTransaction (tran : IDbTransaction) (dbUnit : DbUnit) =

Perhaps I should update the docs around transactions to demonstrate this, because I prefer the fluent API myself as well.

@AnalyzeNCode
Copy link
Author

Thanks for the quick response. That's resolve my query.
I know you are always responsive. I had same experience previously when I started to experiment Validus.
Thanks again.

@pimbrouwers
Copy link
Owner

My pleasure! Glad to hear that has been your experience. I try my best!

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

No branches or pull requests

2 participants