Click or drag to resize

Seal.Helpers Namespace

Helper Objects
Classes
 ClassDescription
Public classAzureHelper Static helper methods for Azure: client principal parsing and Blob storage, available in Razor scripts
Public classCryptoHelper Static helper methods for hashing, AES, Triple DES and RSA encryption, available in Razor scripts
Public classCustomLINQtoDataSetMethods LINQ extension methods to copy a sequence of objects to a DataTable
Public classDataTableLoader Helper to load data tables to define No SQL table sources
Public classDefaultScriptValidator Optional, opt-in deny-list validator (defense-in-depth) wired by Repository.Init when SealServerConfiguration.EnableRazorScriptValidation is true. DISABLED by default because Seal scripts may legitimately use file/process/reflection APIs (e.g. report tasks). IMPORTANT: a substring deny-list on a Turing-complete language can be bypassed — this is only a speed-bump. The real security boundary remains "who is allowed to author/edit Razor scripts (reports, meta sources, security providers, dynamics)".
Public classExcelHelper Static helper methods to read and write CSV values and load DataTables from Excel or CSV files, available in Razor scripts
Public classFileHelper Static helper methods to manipulate files, directories and ZIP archives, available in Razor scripts
Public classHelper Static helper methods (strings, HTML, database connections, types, reflection, logging) that can be used in Razor scripts
Public classImpersonator Allows code to be executed under the security context of a specified user account.
Public classObjectShredderT Utility class to convert a sequence of objects of type T into a DataTable (one column per public field or property)
Public classRawContent Marker for content that must be emitted RAW (not HTML-encoded), mirroring the fork's IEncodedString/RawString. Produced by SealCoreTemplateBase.Raw(...) and .Include(...).
Public classRazorCoreEngine RazorEngineCore-backed replacement for the bits of the Antaris fork that Seal uses: a string-keyed compiled-template cache with optional on-disk persistence (RazorCacheDirectory). Reached only via RazorHelper when UseRazorCore is enabled.
Public classRazorHelper Helper to compile and execute Razor scripts (RazorEngineCore based)
Public classScriptValidator Optional script validation before compilation
Public classSealCoreTemplateBase Base template every Seal Razor template/partial compiles against when RazorHelper.UseRazorCore is on. Reproduces the Antaris fork contract used by Seal templates: - bare @expr is HTML-encoded by default; @Raw(...) is emitted raw - @Include(key, model) resolves a previously-compiled partial BY KEY and emits it raw (nestable) - a dynamic ViewBag shared down the include chain
Public classTaskDatabaseHelper Helper class to perform database operations (load, create and insert tables, execute SQL statements), used from Razor scripts of report tasks
Public classTaskHelper Helper class to load tables from Excel, CSV or external data sources and to execute SQL statements, used from Razor scripts of report tasks
Delegates
 DelegateDescription
Public delegateCustomDetectAndConvertTypes Custom delegate to detect column types and convert the values of a table
Public delegateCustomGetTableColumnName Custom delegate to get the database column name of a column
Public delegateCustomGetTableColumnNames Custom delegate to build the comma-separated list of column names of a table
Public delegateCustomGetTableColumnType Custom delegate to get the database column type of a column
Public delegateCustomGetTableColumnValue Custom delegate to get the SQL value of a column of a row for an INSERT statement
Public delegateCustomGetTableColumnValues Custom delegate to build the comma-separated list of values of a row for an INSERT statement
Public delegateCustomGetTableCreateCommand Custom delegate to build the CREATE TABLE command for a table
Public delegateCustomLoadDataTable Custom delegate to load a DataTable from a connection and a SQL SELECT statement
Public delegateCustomLoadDataTableFromCSV Custom delegate to load a DataTable from a CSV file
Public delegateCustomLoadDataTableFromExcel Custom delegate to load a DataTable from an Excel file