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

Query logging #66

Closed
riguelbf opened this issue May 2, 2017 · 1 comment
Closed

Query logging #66

riguelbf opened this issue May 2, 2017 · 1 comment
Assignees
Milestone

Comments

@riguelbf
Copy link

riguelbf commented May 2, 2017

I would like to get the query built?

@henkmollema henkmollema self-assigned this Mar 17, 2018
@henkmollema henkmollema added this to the v2 milestone Mar 17, 2018
@henkmollema henkmollema changed the title Query Builded Query logging Mar 17, 2018
@henkmollema
Copy link
Owner

Dommel v2 will support logging queries. For example:

// Provide a callback to capture logs
var logs = new List<string>();
DommelMapper.LogReceived += log => logs.Add(log);

var id = await con.InsertAsync(dto, transaction);

// Optionally remove the callback when done
DommelMapper.LogReceived = null;

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

No branches or pull requests

2 participants