You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we click on the **All Changes** button in the Actions section, we can see all the details of the changes made to the entity in a timeline.
12
+
13
+
Additionally, if you want to view all the changes made to an entity, you can redirect to `{AppPath}/{AppAreaName}/EntityChanges/{Entity_ID}/{Entity_Full_Name}` within the application. This URL directs to a page that contains all the historical changes for the specified entity.
14
+
15
+
<imgsrc="images/entity-history-timeline-detail.png"alt="Entity History Timeline Detail"class="img-thumbnail" />
16
+
11
17
You should add entity type that you want to track to ***.Core\EntityHistory\EntityHistoryHelper.TrackedTypes**. Make sure you uncomment following lines in ***.EntityFrameworkCore\EntityFrameworkCore\{YourProjectName}EntityFrameworkCoreModule.cs** and set **Configuration.EntityHistory.IsEnabled** to **true**.
When we click on the **All Changes** button in the Actions section, we can see all the details of the changes made to the entity in a timeline.
12
+
13
+
Additionally, if you want to view all the changes made to an entity, you can redirect to `{AppPath}/{AppAreaName}/EntityChanges/{Entity_ID}/{Entity_Full_Name}` within the application. This URL directs to a page that contains all the historical changes for the specified entity.
14
+
15
+
<imgsrc="images/entity-history-timeline-detail.png"alt="Entity History Timeline Detail"class="img-thumbnail" />
16
+
11
17
You should add entity type that you want to track to ***.Core\EntityHistory\EntityHistoryHelper.TrackedTypes**. Make sure you uncomment following lines in ***.EntityFrameworkCore\EntityFrameworkCore\{YourProjectName}EntityFrameworkCoreModule.cs** and set **Configuration.EntityHistory.IsEnabled** to **true**.
The first commented line here adds entity types defined in `EntityHistoryHelper.TrackedTypes` to entity history config, so changes on those entities will be recorded. The second commented line adds a custom config provider to `CustomConfigProviders` list. ASP.NET Zero executes `GetConfig` method of each `CustomConfigProvider` and returns the result of `GetConfig` to Angular client app.
28
+
The first commented line here adds entity types defined in `EntityHistoryHelper.TrackedTypes` to entity history config, so changes on those entities will be recorded. The second commented line adds a custom config provider to `CustomConfigProviders` list. ASP.NET Zero executes `GetConfig` method of each `CustomConfigProvider` and returns the result of `GetConfig` to MVC client app.
23
29
24
-
So, in this particular case, `EntityHistoryConfigProvider` returns if entity history feature is enabled or not and if enabled, it returns list of entities enabled for entity history. Angular client app uses those information to show entity history related buttons on each entity page.
30
+
So, in this particular case, `EntityHistoryConfigProvider` returns if entity history feature is enabled or not and if enabled, it returns list of entities enabled for entity history. MVC client app uses those information to show entity history related buttons on each entity page.
25
31
26
-
For example, when entity history is enabled for an Entity, Angular client shows history dropdown menu item for each entity record on the related page. Here is a sample screenshot for role list:
32
+
For example, when entity history is enabled for an Entity, MVC client shows history dropdown menu item for each entity record on the related page. Here is a sample screenshot for role list:
27
33
28
34
<imgsrc="images/change-logs-history-action-item.png"alt="Entity History Action"class="img-thumbnail" />
29
35
30
36
In this way, history of an entity can be retrieved both on change logs tab in audit logs page or on the list page of the entity itself.
31
37
32
-
The entity history config can be accessed on the Angular app like below:
38
+
The entity history config can be accessed on the MVC app like below:
0 commit comments