HuLib — Overview
Tools & libraries for quicker, cleaner and more robust software development.
HuLib is a comprehensive C# library to facilitate quicker development and more robust applications. It assists by providing ready-to-use functionality that is common for custom Sage 300 applications.
But it’s not just for Sage 300—HuLib also has facilities for common operations like reading and writing Excel files and SQL data binding.
We use HuLib internally, and now you can too!
Benefits
- Quicker development times
- Shorter code for the same tasks
- Code robustness (replacing custom implementation code with well-used library functionality)
- Code readability (especially in the case of Sage 300 code)
- Tools to generate code for you
- Frequent updates to enhance functionality
Library Coverage
Sage 300
- Connection managing
- View management and abstraction
- Instant optional field mapping to a
Dictionary
- Binding view data to a model or collection of model objects directly
- Custom WPF finder that works like other WPF controls but looks and acts like the Sage 300 finder
CSV
- Easy-to-write/read wrapper—no manual File IO and quick read/write times
- Ability to map data to a model or collection of models directly via data annotations
Excel
- Easy-to-write/read wrappers—no manual File IO and quick read/write times
- Much more performant when using the BufferedExcelReader/Writer
- Ability to map data to a model or collection of models directly via data annotations
SQL
- Simplified connection creation
- Ability to map query results to a model or collection of models directly via data annotations
WPF
- File picker
- Common Relay Command implementation for MVVM
- EncryptedTextBox control that allows you to bind to an EncryptedString (from this library)
- File saving
- EncryptedString class stores a string in an encrypted format until its value is used
- Multiple mechanisms for saving XML data, with support for encrypting/decrypting the data that is being saved via EncryptedString
Tools
- Convert Sage 300 VB6 macros to C# HuLib-compatible code
- Generate classes for JSON objects
- Custom Sage 300 View Info
- Create model classes with data annotations based on CSV files
Learn More
Check out our developer blog for code snippets and the latest functionality, written by the HuLib creator himself!