i created function insert values database in dll file. how call function clicking button? dll class name dbconnection
code
private void metrobutton2_click(object sender, eventargs e) { string connstr = "data source=desktop-qpc780f;initial catalog=db_evernote;integrated security=true"; dbconnection.dbconnection db = new dbconnection.dbconnection(connstr); }
add reference dll have created.
in button click event, create object class dbconnection dbconnection = new dbconnection(connectionstring)
call method using object dbconnection.insertdata()
Comments
Post a Comment