Documentation
SolutionDeveloperComplianceProjects
  • Getting Started
  • Technology
    • Application Framework
    • Object-Relational Mapping
    • Security Framework
    • Architecture Pattern
    • API Management
  • Environment
    • Development Tool
    • Database Server
    • Web Server
  • PRESENTATION
    • Design Material
    • HTML Helpers
    • Icon Images
    • Custom CSS
    • JQuery Plugin
      • DataTables
      • Tabs
      • Date Picker
      • Calendar
      • Chart
      • Treeview
    • Client Script
      • Open Modal
      • Close Modal
      • Handle return data
      • Load Content
      • Change Hash
      • Change Title
      • Get actual Hash
      • Get Content
      • Update Content
      • Delete Content
      • Get Partial Content
      • Get Partial Content Async
      • Update Partial Content
      • Update Partial Content Async
      • Delete Partial Content
      • Get Action
      • Update Action
      • Delete Action
      • Cascading Dropdown
      • Display Document
    • MVC View
  • BACKEND
    • Base Controller
    • Controller
    • Base Model
    • View Model
    • Class Utility
      • Constant Values
      • Global Properties
      • Option Helper
      • Setting Helper
    • Data Repository
      • Read Columns
      • Read All Columns
      • Read First Record
      • Read by Primary Key
      • Find Record
      • Insert Record
      • Update Record
      • Delete Entity
      • Delete by Criteria
      • Delete by Primary Key
      • Counting Record
      • Check Exist
      • Generate Row-Id
    • Unit Of Work
    • Data Entity
  • Application Features
    • Account Management
    • Navigation Editor
    • Access Control
  • Examples
    • Simple Page
    • Master Detail
    • Editor Template
Powered by GitBook
On this page
  • General information
  • MiddleContext.cs
  • Data Layer Container
  • User Info
  1. BACKEND
  2. Class Utility

Global Properties

PreviousConstant ValuesNextOption Helper

Last updated 2 years ago

General information

Global Properties are Properties that are accessible from everywhere (including View files) and are also available to all of our applications. They are Properties that are so central or used so frequently that they should be defined globally, so that we do not have to write the same logic every time anew.

MiddleContext.cs

In our applications, all Global Properties are defined in the "MiddleContext.cs" file. Having all of them stored in one place serves the purpose of easier navigation, i.e. it is easier to find their definitions and to have an overview of which Global Properties are available in total.

In the following, the most important Global Properties will be described:

Data Layer Container

"UnitWork" is the Data Layer Container where all data repositories are stored. Data repositories are representations of the data tables in the database. By loading the data of a data table into a data repository, interactions with the corresponding data table becomes possible. For more details see . All the data repositories are defined in "IUnitWork.cs" which is the data type of the Global Property "UnitWork".

User Info

General information about the User is also stored as Global Properties. They include:

  1. Plant is the factory the User is currently located at

  2. Scopes is a List of Plants whose data the User is allowed to have access to.

  3. FullName is the combination of first and last name of the User separated by a space, in all caps.

Data Repository