Commit Graph

15 Commits

Author SHA1 Message Date
Torben Nehmer
566d727297 Tested DevEnv Interface, fixed up several Code Contract errors / misuses.
Added Export as an DevEnv interface function, exporting a single object to txt. Builds a filter string and writes the whole stuff out. Works like a breeze.

Added Charset conversion for finsql.exe result values (command output and error log), which uses something similar (but not quite) to CP850. For any error message, this should be enough, however, be aware that the format of the TXT files generated by ExportObject is in the same strange encoding.

Details can be found here: http://forum.mibuso.com/discussion/37078/encoding-of-exported-navision-objects-txt-files

It should be considered if it makes sense to normalize the objects as best as possible into the Unicode plane and convert them back on exit - though this will probably generate a whole different set problems when automating Build jobs. For now, leave it as-is, better safe than sorry.
2016-11-25 22:32:34 +01:00
Torben Nehmer
98a044e2de Added framework to call finsql synchronously. Captures all output and handles management of a temporary working directory which is created on the fly in the current GetTempPath location. Any result is read into memory and passed back to the caller.
Added some timing and debugging output to trace calls to finsql.exe.
TODO: Add an optional callback to optionally allow the caller to handle any additional files created in the working directory.
2016-11-23 22:26:36 +01:00
Torben Nehmer
6c0d57303a Merge branch 'master' of https://github.com/torbennehmer/NAV-Source-Control.git 2016-11-22 23:04:31 +01:00
Torben Nehmer
2536f7c80c Added support for code contracts (requires VS support!)
Implemented Contracts into existing classes (yet incomplete especially with Interface implementations in NavObject). Otherwise it basically works.
Started class for interfacing to finsql.exe.
2016-11-22 23:04:19 +01:00
Torben Nehmer
8972de71a1 Added support for code contracts (requires VS support!)
Implemented Contracts into existing classes (yet incomplete especially with Interface implementations in NavObject). Otherwise it basically works.
2016-11-22 23:03:24 +01:00
Torben Nehmer
28dbc5c7fa Implemented helper methods, equality, comparison and similar tools to make handling of NavObjects easier. Reject objects with a Company Name set, which we don't support at this point (not sure if this would acutally make sense).
Adapted test code.
2016-11-22 21:50:01 +01:00
Torben Nehmer
e2eb504261 Added SQL Interface to NAV Object table with support for serialization. Tested this. 2016-11-20 21:34:21 +01:00
Torben Nehmer
f816138188 CamelCase for Namespace Names 2016-11-20 21:33:12 +01:00
Torben Nehmer
9b7f91363d Added base Project for the DLL with the actual code. 2016-11-20 15:44:36 +01:00
Torben Nehmer
4a282e6b5d Changed default Project Namespace 2016-11-20 15:44:22 +01:00
Torben Nehmer
3588c5359e Restructured Solution, command line app is now test host for the actual DLL. 2016-11-20 15:30:45 +01:00
Torben Nehmer
98f235815b Optimized Configuration for log4net 2016-11-19 22:51:06 +01:00
Torben Nehmer
9f324759cd Added basic log4net config file 2016-11-19 22:35:33 +01:00
Torben Nehmer
04bfca789b Added log4net to Project. 2016-11-19 22:04:58 +01:00
Torben Nehmer
e3b3b9dd85 Initial Project Setup 2016-11-19 22:00:13 +01:00