Serving Industries Worldwide

Innovative Ways - Satisfied Clientele

What is Razor View Engine in ASP.Net Core?

Table of Content 1. What is View Engine? 2. Why is View Engine required in ASP.NET? 3. What is Razor View Engine? 4. Razor Markup 5. What is Razor Syntax in MVC? 5.1. Single block Statements 5.2. Multi statement block 5.2.1. Variables 5.2.2. Conditions 5.2.3. Loops 5.2.4. Model 6. Conclusion What is View Engine? View Engine is responsible for producing an HTML response when called by the Controller Action method.The...

read more

What is Serilog in Asp.Net Core 3.1?

Table of Content 1. What is logging? 2. Serilog in ASP.NET core 3.1 3. Why we use Serilog? 4. Advantages of Serilog 5. Disadvantages of Serilog 6. Stepwise example of Swagger 7. Conclusion What is logging? Logging is an essential needed feature for detecting and examine issues in applications. Logging frameworks make it easy to log event data to Configure in Advance for log targets. However, if your log file carries unstructured data, it becomesa...

read more

Unit testing a custom middleware in ASP.NET Core with Interface

Table of Content 1. What is unit test? 2. How does the tests look like? 3. What is Middleware? 4. Advantages of Middleware 5. Send requests with HttpContext 6. Conclusion What is unit test? A unit test is a type of testing.It is the Small Part of code that can be logically in a Program and test that code is work properly that is testing. The latest versions of unit testing can be found in frameworks like JUnit, or testing tools like Test Complete. You will...

read more

How to use ELMAH for enumerating error in ASP.NET core?

Table of Content 1. Introduction to ELMAH 2. Why to choose ELMAH? 3. ELMAH HTTP Modules 4. Logging to from ASP.NET Core 5. Configuring API key and log ID in options 6. Additional options 6.1. Events 6.2. Remove sensitive form data 7. Logging exceptions, errors to using NLog 8. Conclusion Introduction to ELMAH ELMAH Stands for Error Logging Modules and Handlers that offers functionality to logging runtime ASP.NET errors. ELMAH...

read more

Ultimate guide for implementing Repository pattern and Unit of work for .NET core

The repository and unit of work patterns are deliberated to generate alayer between the data access layer and the business logic layer of any application. Executing these patterns can assistwrapping of your application from changes in the data store and can accelerate automated unit testing or test-driven development (TDD). Table of Content 1. What is the Repository pattern? 2. What is Unit of Work pattern? 3. Repository and Unit of Work pattern design 4....

read more