Skip to content

Logging, caching, field level role-based authorization and etc. with layered architecture.

License

Notifications You must be signed in to change notification settings

furkanisitan/dotnet-framework-backend

Repository files navigation

.net-framework-sample-backend-project

In this project, there are sample coding for some structures that a backend application may need.

Steps to Setup

  1. Clone the application.
  2. Open the project in Visual Studio.
  3. In Solution Explorer, right click the solution and select Restore NuGet Packages.
  4. On the menu bar, choose Build and then choose Clean Solution.
  5. On the menu bar, choose Build and then choose Build Solution.
  6. Press the green arrow (Start Button) on the main Visual Studio toolbar.

To test log4net's database logging:

  1. Create a new database named ShopLogTest in Sql Server Object Explorer.

  2. Run the following query on the database.

    CREATE TABLE [dbo].[Log] (
        [Id]            INT             IDENTITY (1, 1) NOT NULL,
        [TimeStamp]     DATETIME        NULL,
        [MessageObject] NVARCHAR (4000) NULL,
        [Level]         NVARCHAR (50)   NULL,
        [Identity]      NVARCHAR (50)   NULL,
        [LoggerName]    NVARCHAR (50)   NULL,
        [UserName]      NVARCHAR (255)  NULL,
        PRIMARY KEY CLUSTERED ([Id] ASC)
    );

What can you find in this project?

Dependency Injection
Validation
Logging
Caching
Transaction
Role-Based Authorization
Field Level Role-Based Authorization
Performance Counter
Generate Fake Data

Author

Furkan Işıtan