Jump to: navigation, search

Changes


UBIK Console

2 bytes removed, 13:47, 16 April 2018
</source>
The following script code is taken from the example script file and shows how to work with {{UBIK}} Console via script file. In line one a new dependency is loaded, namely the [http://wiki.augmensys.com/index.php?title=UBIK_DBTool DBTool]. Line two creates a SqlConnectionStringBuilder in order to work comfortably with the connectionstring provided by ubikEnvironmentConnection. Line four calls a method from the customizing assembly which has been loaded by the console for us as mention earlier. Line 6 uses the DBTool project and creates a backup of the database.<source lang="csharpxml">
1. #r "C:\\Users\\cle\\Documents\\Dev\\UBIK.Server\\Branches\\2.6\\UBIK.Console\\bin\\Debug\\DBTool.exe"
2. System.Data.SqlClient.SqlConnectionStringBuilder scsb = new System.Data.SqlClient.SqlConnectionStringBuilder(ubikEnvironmentConnection.ConnectionString);
182
edits