-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/prepared perfco #3
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
base: master-v1.5.231
Are you sure you want to change the base?
Conversation
src/SQLiteAsync.cs
Outdated
/// </summary> | ||
public void Dispose() | ||
{ | ||
Dispose(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Inner
already handles finalizing the statement, you don't need to muck about with this pattern. Just public void Dispose() => Inner.Dispose();
and drop the protected version in this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, updated
public class SQLitePreparedStatement : IDisposable { | ||
Sqlite3Statement Statement; | ||
SQLiteConnection Connection { get; set; } | ||
SQLiteConnection Connection { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private setter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't the whole thing private by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... yes. didn't notice that.
No description provided.