Search code examples
asp.netauditaudit-loggingentity-framework-plus

Working example of EF plus audit features in github


I am trying to use EF plus audit features in ASP .NET project. Is there any working example in github which i can download & run in VisualStudio ( after doing necessary changes related to DB) ? All the examples I see is with FiddleHelper which does not have the complete code and hence does not run in VS. Please share a working example in github.

Thanks, Nilanjan


Solution

  • I have created a sample from the link you have given. Step 1: Download the code into your local box. Step 2: Update the connection string inside appsettings.json Step 3: Please create 3 tables inside your database. Please refer to the "Scripts" folder. Step 4: Execute the console application and see the data getting populated. Please let me know if you need any assistance.

    GitHub URL: https://github.com/vishipayyallore/mini-projects-2021/tree/master/Projects/EFPlusAuditDemo

    appsettings.json file for reference

    {
      "ConnectionStrings": {
        "SqlServerConnection": "Data Source=(localdb)\\LocalDbSessions;Initial Catalog=BooksStoreData;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
      }
    }
    

    Tables getting populated

    Create Tables using these scripts