I upvoted it because I use it.
Although since I am studying C#, VB and Java I would be interested to find out the answer to that.
How about this? https://github.com/dlech/keepass2/tree/master/KeePassLib
Re:KeePass: OpenSource Password Manager
by abrussak on Tuesday February 04, 2014 @12:15AM
(#7175659)
This may work: http://keepass.info/help/v2_dev/scr_index.html
The first link in that link describes a flexible command line you can use for a number of operations. The second describes how you can write c# like script files that will be loaded. Both require the KPScript extension. Why not just bundle/reference keepass.exe since its a .net executable? see http://stackoverflow.com/a/9028433/259130 . Also if you haven't tried it yet you might want to try messing about with https://www.linqpad.net/ (run c# as script file/interactively) like he did.
Does anyone know if there is a lib to read and write into keepass archives programmatically, e.g. from a C# app? that would be quite useful to manage in an automated way some credentials for production systems, sharing tha archive via versioning repos in a team.