Advanced Search
Search Results
68 total results found
SignifyHR.Helpers
Groups commonly used helpers used across all modules in Signify Helpers available: ApiUtilities BooleanHelper CalendarControlHelper DateHelper DocumentUploadHelper EnumHelper ExceptionHelper FileHelper FunctionHelper GenerateTokenUtilities Ho...
Table of contents
1. General 2. Naming Conventions 3. Models / Domain Models 4. View Models 5. View 6. Controllers 7. Routing 8. Attributes 9. Extensions and Tools
General
For a general guide on ASP.NET MVC, click on the following image Each functional domain being implemented must be added to its own Area e.g Administration The folder structure to use when creating a new MVC area is Each area must have the folders Co...
Routing
Go To Naming Conventions For a guide regarding routing, click on the image below Area specific routing is implemented in the Area Registration cs file and can have custom routing as required by the area e.g. LearningStoreAreaRegistration.cs using System; ...
Naming Conventions
The following naming convention must be followed when creating any of the MVC pattern sections. All names must be created using Pascal-Case. Model The name is always a singularized representation of the database entity e.g. for the data base entity prsEmpl...
Attributes
Go To Naming Conventions The ASP.NET MVC framework supports four different types of filters executed in the following order: Authorisation filters – Implements the IAuthorizationFilter attribute. Action filters – Implements the IActionFilter attribute. R...
Model/ Domain Model
Go To Naming Conventions For information regarding models, click the images below Contain properties to represent specific data e.g EF Entities or SQL objects Contain business logic (e.g. validation rules) to ensure the represented data fulfills the des...
ViewModel
Go To Naming Conventions For information regarding view models, click the images below The class to group one or more models. It applies business logic on the results set from the models TODO : properties defined and properties inherited, private set...
View
Go To Naming Conventions For information regarding razor views, click the images below Responsible for presenting viewmodels, viewbags and other data structures in the format of the end user requirements Should mainly contain presentational code, such a...
Controller
Go To Naming Conventions For information regarding Controllers, click the images below Each controller must implement the IController interface directly or indirectly, this must be done using the BaseController namespace SignifyHR.Areas.Portal.Cont...
Table of contents
General Naming conventions Domain conventions LINQ EF Core
General
All methods accept and use ISessionHandler using SignifyHR.Core; using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; namespace SignifyHR.Data.Domain { public partial class exSample...
Naming conventions
Methods for EF are written in Pascal Case Examples of naming conventions that need to be followed for EF Methods: Method Fetch TryFetch FetchAll FetchAllBy<Association> TryFetchFirst Create Update Delete ...
Domain convention
Methods Method Parameters Linq / Entity Operation Return Type State Dal Sync Mode Fetch (id, optional filter params, eagerLoaded = false / eagerLoadParms = null) Single T Static Default TryFetch (id, optional filter params, eagerLoa...
LINQ
IQueryable This is used when you want to add and/or filter results from the database, without the query being executed already. This is generally used with methods like ValidSamples() and FilterSamples() The IQueryable interface inherits the IEnumerable int...
EF Core
https://docs.microsoft.com/en-us/ef/
Table of contents
General Naming conventions Bundling Minification jQuery TypeScript Iterators (Loops) Properties Variables
General
Try to follow the AirBnB styling guide as far as possible. Sometimes you might have to deviate from the guide; such as when targeting Internet Explorer without a transpiler, you have to use var instead of const or let. When using a complete toolchain with a t...
Naming conventions
Use camelCase when naming objects, functions, and instances. // bad const OBJEcttsssss = {}; const this_is_my_object = {}; function c() {} // good const thisIsMyObject = {}; function thisIsMyFunction() {} Use PascalCase only when naming constru...
Bundling
Always use bundling to some degree in production. Commonly used vendor scripts should always be bundles, but however be aware that bundles do not grow too large. Bundling tools such as webpack provide an efficient way to split bundles when they grow too large....