Skip to content

Commit

Permalink
Merge pull request #214 from recruitans/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ismcagdas authored Jan 26, 2021
2 parents 44c351c + e4ab40f commit 15616b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/en/Core-Mvc-Sign-In-Without-Specifying-Tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Normally, **ASP.NET Zero** uses tenant information in login transactions. This d
* And add following lines;

```csharp
public async Task<int?> TryGetTenantIdOfUser(string userEmail)
public async Task<int?> TryGetTenantIdOfUser(string userEmail)
{
using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
{
Expand Down
8 changes: 4 additions & 4 deletions docs/en/Features-Mvc-Core-Entity-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

In change logs under audit logs menu, we can see all change logs (entity history) in the application:

<img src="D:/Github/documents/docs/en/images/change-logs-core.png" alt="Change Logs" class="img-thumbnail" />
<img src="images/change-logs-core.png" alt="Change Logs" class="img-thumbnail" />

When we click the magnifier icon, we can see all the details about a change log:

<img src="D:/Github/documents/docs/en/images/entity-history-log-detail.png" alt="Change Log Detail" class="img-thumbnail" />
<img src="images/entity-history-log-detail.png" alt="Change Log Detail" class="img-thumbnail" />

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**.

Expand All @@ -25,7 +25,7 @@ So, in this particular case, `EntityHistoryConfigProvider` returns if entity his

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:

<img src="D:/Github/documents/docs/en/images/change-logs-history-action-item.png" alt="Entity History Action" class="img-thumbnail" />
<img src="images/change-logs-history-action-item.png" alt="Entity History Action" class="img-thumbnail" />

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.

Expand All @@ -42,7 +42,7 @@ The abp.custom.EntityHistory object contains properties below:

Here is a sample screenshot which show the value of **abp.custom.EntityHistory**:

<img src="D:/Github/documents/docs/en/images/change-logs-custom-config-result-core.png" alt="Entity history custom config" class="img-thumbnail" />
<img src="images/change-logs-custom-config-result-core.png" alt="Entity history custom config" class="img-thumbnail" />


## Next
Expand Down
2 changes: 1 addition & 1 deletion docs/en/nav-aspnet-core-mvc.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
},
{
"text": "File Upload",
"path": "Core-Mvc-File-Upload-Tutorial.md "
"path": "Core-Mvc-File-Upload-Tutorial.md"
},
{
"text": "Sign In Without Specifying Tenant",
Expand Down

0 comments on commit 15616b4

Please sign in to comment.