How to Implement Audit trial in ASP.NET MVC [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
We have developed an asp.net mvc application and is live for 2 years.
Now our client is asking for Audit Trail.
Requirement
Should be able to define which column / table needs to be audited
Should be able to create a report based on the same.
Below is our current scenario
We are using SQL Server 2012 as backend
Our data access layer communicated to DB only through Store Procedure.
We are not using any model binders.
What is the best way to implement audit trail in the current scenario?

Define the business scenarios that need to be audited.
Identify the code entry points where those scenarios happen
Design the audit data model based on what data you want/need to store
Write data in your audit table/tables on the previously identified code entry points
This answer is intentionally vague. Auditing is not something that ASP.NET or any framework can do for you. This is usually intimately related to your business logic code and requirements

Related

ASP.NET Core Web API multi database in app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I currently work to develop POS (Point of Sales) based on ASP.NET Core and I am using Entity Framework Core.
What I need is create separate account for each institution that will be use our POS system at same time create its own database (customer database) dynamically (migration in EFC).
Finally when user (or institution) logs in, I have to verify the customer's account and link it with their database.
What is the framework that I need to get this job done?
I had a similar problem with you before, except that my software was connected to distributed database. In this case, I used the dynamic unit of work and the repository pattern. Also, to create a connection string for connect to each database, I kept them in another central database, and also in the dynamic unit of work you can create the dynamic repository of each database automatically and connect to the relevant database by receiving the connection string. You can also see the sample here, but you must to change repositroy and unit of work to generic mode.

View an Entity Framework database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am currently learning about APIs in general and I want to make a simple api that can be able to receive and send requests. I created a simple API using ASP.NET Core and the Entity Framework in order to use and save data to a local SQL Server.
This is the tutorial that I used in order to create the database.
However, I am now wondering if there is a way to view the database tables and their contents like in phpMyAdmin. Is it possible?
In Visual Studio you can view it by clicking Tools > Connect to Database.
Find your database table and right-click to get the option to view the data.
Personally I use SQL Server Management Studio to connect and view my data.
Find it here.

Can SignalR be used with ANY database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need to implement push technology in my application. I need to display data on the web page as it gets inserted in the database in real time.
I am using ASP.NET MVC with IBM Informix as backend database. I am trying to figure out if it is possible to use SignalR with Informix?
Does SignalR have any dependency on the backend database? Or could it be used with any database?
Signal R is a system for real time (ish) communication over an HTTP connection and your database is for data storage. The two are solutions to completely separate problems, and there is no dependency between them. You can write code to link up these two parts of your application.

Notify changes from generic database to WPF application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Like in the title, I need to notify to my C# WPF application any changes in the database (there is another app adding data in one table).
I'm using Entity Framework and Linq. The dbms can be different (SQL Server, Oracle, MySQL,...).
I am reading a lot about this and I ask it also here: is there a way yo reach this goal without using polling?
I hope the following link might help you, especially the answer for Event Notifications & Sql server's CLR objects(comments on Redis etc tools) for SQL Server but this may be limited to one or two databases:
MsSQL callback function to asp.net website
For Oracle database, the ODP has similar notification mechanism:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/changenotification/ChangeNotification.htm
And since the EF providers are different for SQL & Oracle and with very less support for other database, you can have hosted service etc., listening to change notifications and publishing data change event so that the subscriber can take appropriate action like refreshing context or updating cache etc.

How to store common data inside the application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We have configuration data stored within the tables like casestatustypes with columns such as statusid, name, description. How to store these kind of data in the web application, instead of hitting the database each time for retrieving the statusid.
You use a technique known as caching. Basically, you build an in-memory copy of the data that you use for retrieval purposes. When you start the application, you pull from the database to create this cache. When you do an insert, update, or delete; you do it to both the cache and database.
Its easy enough to implement yourself, and there are several good libraries out there (Microsoft even has one in Enterprise Library http://msdn.microsoft.com/library/cc467894.aspx).
Gotchas:
If the data set is large, you'll want to implement a caching strategy that doesn't hold the entire dataset in memory (libraries are useful for this).
Since its a web-app, you need to make sure the cache isn't going to be re-created for each session.

Categories