diff --git a/README.md b/README.md
index 1d7b7e51a7..ebba20da41 100644
--- a/README.md
+++ b/README.md
@@ -110,7 +110,7 @@ Love ABP Framework? **Please give a star** to this repository :star:
## Discord Channel
-You can use this link to join the ABP Community Discord Server: https://discord.gg/uVGt6hyhcm
+You can use this link to join the ABP Community Discord Server: https://discord.gg/abp
## ABP Commercial
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
index 023a4b18ed..18c5524d1f 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
@@ -380,6 +380,8 @@
"PurchaseItems": "Purchase Items",
"SuccessfullyUpdated": "Successfully updated",
"SuccessfullyAdded": "Successfully added",
- "PurchaseState": "Purchase State"
+ "PurchaseState": "Purchase State",
+ "ShowBetweenDayCount": "Show Between Days",
+ "PurchaseOrder": "Purchase Order"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
index 8fa96b5ee2..0d7724df56 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
@@ -495,7 +495,9 @@
"LicenseTypeNotCorrect": "The license type is not correct!",
"Trainings": "Trainings",
"ChoseTrainingPlaceholder": "Chose the training...",
- "ContactUsToGetQuote": "Contact us to get a quote",
+ "DoYouNeedTrainings": "Do you need one of these trainings?",
+ "DoYouNeedTraining": "Do you need {0} training?",
+ "GetInTouchUs": "Get in touch with us",
"ForMoreInformationClickHere": "For more information, click here.",
"IsGetOnboardingTraining": "Would you like to get onboarding & web application development training?",
"OnboardingWebApplicationDevelopmentTrainingMessage": "To schedule your training calendar, please contact {0} after creating the organization",
@@ -503,6 +505,7 @@
"AdditionalNote": "Additional Note",
"OnboardingTrainingFaqTitle": "Do you have ABP onboarding training?",
"OnboardingTrainingFaqExplanation": "Yes, we have ABP Training Services to help you get your ABP project started fast. You will learn about ABP from an ABP core team member and you will get the skills to begin your ABP project. In the onboarding training, we will explain how to set up your development environment, install the required tools, create a fully functional CRUD page. The training will be live and the Zoom application will be used, and we are open to using other online meeting platforms. The language of the training will be English. You can also ask your questions about ABP during the sessions. A convenient time and date will be planned for both parties. To get more information, contact us at info@abp.io.",
- "AddBasket": "Add to Basket"
+ "AddBasket": "Add to Basket",
+ "SendTrainingRequest": "Send Training Request"
}
}
diff --git a/docs/en/AspNet-Boilerplate-Migration-Guide.md b/docs/en/AspNet-Boilerplate-Migration-Guide.md
index 52a2fced6a..e337b78a6d 100644
--- a/docs/en/AspNet-Boilerplate-Migration-Guide.md
+++ b/docs/en/AspNet-Boilerplate-Migration-Guide.md
@@ -1,4 +1,4 @@
-# ASP.NET Boilerplate v5+ to ABP Framework Migration
+# Migrating from ASP.NET Boilerplate to the ABP Framework
ABP Framework is **the successor** of the open source [ASP.NET Boilerplate](https://aspnetboilerplate.com/) framework. This guide aims to help you to **migrate your existing solutions** (you developed with the ASP.NET Boilerplate framework) to the ABP Framework.
diff --git a/docs/en/Caching.md b/docs/en/Caching.md
index 13129bbc95..074d6d951f 100644
--- a/docs/en/Caching.md
+++ b/docs/en/Caching.md
@@ -258,7 +258,7 @@ ABP's distributed cache interfaces provide methods to perform batch methods thos
Distributed cache service provides an interesting feature. Assume that you've updated the price of a book in the database, then set the new price to the cache, so you can use the cached value later. What if you have an exception after setting the cache and you **rollback the transaction** that updates the price of the book? In this case, cache value will be incorrect.
-`IDistributedCache<..>` methods gets an optional parameter, named `considerOuw`, which is `false` by default. If you set it to `true`, then the changes you made for the cache are not actually applied to the real cache store, but associated with the current [unit of work](Unit-Of-Work.md). You get the value you set in the same unit of work, but the changes are applied **only if the current unit of work succeed**.
+`IDistributedCache<..>` methods gets an optional parameter, named `considerUow`, which is `false` by default. If you set it to `true`, then the changes you made for the cache are not actually applied to the real cache store, but associated with the current [unit of work](Unit-Of-Work.md). You get the value you set in the same unit of work, but the changes are applied **only if the current unit of work succeed**.
### IDistributedCacheSerializer
diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md
index e22afe82b8..9bad5f816f 100644
--- a/docs/en/Concurrency-Check.md
+++ b/docs/en/Concurrency-Check.md
@@ -1,3 +1,147 @@
## Concurrency Check
-TODO
\ No newline at end of file
+### Introduction
+
+Concurrency Check (also known as **Concurrency Control**) refers to specific mechanisms used to ensure data consistency in the presence of concurrent changes (multiple processes, users access or change the same data in a database at the same time).
+
+There are two commonly used concurrency control mechanisms/approaches:
+* **Optimistic Concurrency Control**: Optimistic Concurrency Control allows multiple users to attempt to **update** the same record without informing the users that others are also attempting to **update** it.
+
+ * If a user successfully updates the record, the other users need to get the latest changes for the current record to be able to make changes.
+ * ABP's concurrency check system uses the **Optimistic Concurrency Control**.
+
+* **Pessimistic Concurrency Control**: Pessimistic Concurrency Control prevents simultaneous updates to records and uses a locking mechanism. For more information please see [here](https://www.martinfowler.com/eaaCatalog/pessimisticOfflineLock.html).
+
+### Usage
+
+#### `IHasConcurrencyStamp` Interface
+
+To enable **concurrency control** to your entity class, you should implement the `IHasConcurrencyStamp` interface, directly or indirectly.
+
+```csharp
+public interface IHasConcurrencyStamp
+{
+ public string ConcurrencyStamp { get; set; }
+}
+```
+
+* It is the base interface for **concurrency control** and only has a simple property named `ConcurrencyStamp`.
+* While a new record is **creating**, if the entity implements the `IHasConcurrencyStamp` interface, ABP Framework automatically sets a unique value to the **ConcurrencyStamp** property.
+* While a record is **updating**, ABP Framework compares the **ConcurrencyStamp** property of the entity with the provided **ConcurrencyStamp** value by the user and if the values match, it automatically updates the **ConcurrencyStamp** property with the new unique value. If there is a mismatch, `AbpDbConcurrencyException` is thrown.
+
+**Example: Applying Concurrency Control for the Book Entity**
+
+Implement the `IHasConcurrencyStamp` interface for your entity:
+
+```csharp
+public class Book : Entity, IHasConcurrencyStamp
+{
+ public string ConcurrencyStamp { get; set; }
+
+ //...
+}
+```
+
+Also, implement your output and update the DTO classes from the `IHasConcurrencyStamp` interface:
+
+```csharp
+public class BookDto : EntityDto, IHasConcurrencyStamp
+{
+ //...
+
+ public string ConcurrencyStamp { get; set; }
+}
+
+public class UpdateBookDto : IHasConcurrencyStamp
+{
+ //...
+
+ public string ConcurrencyStamp { get; set; }
+}
+```
+
+Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service, for that purpose you can use the `SetConcurrencyStampIfNotNull` method as below:
+
+```csharp
+public class BookAppService : ApplicationService, IBookAppService
+{
+ //...
+
+ public virtual async Task UpdateAsync(Guid id, UpdateBookDto input)
+ {
+ var book = await BookRepository.GetAsync(id);
+
+ book.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp);
+
+ //set other input values to the entity ...
+
+ await BookRepository.UpdateAsync(book);
+ }
+}
+```
+
+* After that, when multiple users try to update the same record at the same time, the concurrency stamp mismatch occurs and `AbpDbConcurrencyException` is thrown.
+
+#### Base Classes
+
+[Aggregate Root](./Entities.md#aggregateroot-class) entity classes already implement the `IHasConcurrencyStamp` interface. So, if you are deriving from one of these base classes, you don't need to manually implement the `IHasConcurrencyStamp` interface:
+
+- `AggregateRoot`, `AggregateRoot`
+- `CreationAuditedAggregateRoot`, `CreationAuditedAggregateRoot`
+- `AuditedAggregateRoot`, `AuditedAggregateRoot`
+- `FullAuditedAggregateRoot`, `FullAuditedAggregateRoot`
+
+**Example: Applying Concurrency Control for the Book Entity**
+
+You can inherit your entity from one of [the base classes](#base-classes):
+
+```csharp
+public class Book : FullAuditedAggregateRoot
+{
+ //...
+}
+```
+
+Then, you can implement your output and update the DTO classes from the `IHasConcurrencyStamp` interface:
+
+```csharp
+public class BookDto : EntityDto, IHasConcurrencyStamp
+{
+ //...
+
+ public string ConcurrencyStamp { get; set; }
+}
+
+public class UpdateBookDto : IHasConcurrencyStamp
+{
+ //...
+
+ public string ConcurrencyStamp { get; set; }
+}
+```
+
+Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service, for that purpose you can use the `SetConcurrencyStampIfNotNull` method as below:
+
+```csharp
+public class BookAppService : ApplicationService, IBookAppService
+{
+ //...
+
+ public virtual async Task UpdateAsync(Guid id, UpdateBookDto input)
+ {
+ var book = await BookRepository.GetAsync(id);
+
+ book.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp);
+
+ //set other input values to the entity ...
+
+ await BookRepository.UpdateAsync(book);
+ }
+}
+```
+
+After that, when multiple users try to update the same record at the same time, the concurrency stamp mismatch occurs and `AbpDbConcurrencyException` is thrown. You can either handle the exception manually or let the ABP Framework handle it for you.
+
+ABP Framework shows a user-friendly error message as in the image below, if you don't handle the exception manually.
+
+
diff --git a/docs/en/Distributed-Locking.md b/docs/en/Distributed-Locking.md
index bea10645ca..d57fd45c83 100644
--- a/docs/en/Distributed-Locking.md
+++ b/docs/en/Distributed-Locking.md
@@ -27,21 +27,25 @@ using Medallion.Threading.Redis;
namespace AbpDemo
{
- public class MyModule : AbpModule
- {
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- var configuration = context.Services.GetConfiguration();
-
- context.Services.AddSingleton(sp =>
- {
- var connection = ConnectionMultiplexer
+ [DependsOn(
+ typeof(AbpDistributedLockingModule)
+ //If you have the other dependencies, you should do here
+ )]
+ public class MyModule : AbpModule
+ {
+ public override void ConfigureServices(ServiceConfigurationContext context)
+ {
+ var configuration = context.Services.GetConfiguration();
+
+ context.Services.AddSingleton(sp =>
+ {
+ var connection = ConnectionMultiplexer
.Connect(configuration["Redis:Configuration"]);
- return new
+ return new
RedisDistributedSynchronizationProvider(connection.GetDatabase());
- });
- }
- }
+ });
+ }
+ }
}
````
diff --git a/docs/en/Modules/Docs.md b/docs/en/Modules/Docs.md
index 9653b12618..4777275cd6 100644
--- a/docs/en/Modules/Docs.md
+++ b/docs/en/Modules/Docs.md
@@ -16,7 +16,7 @@ Docs module is an application module and does not offer any hosting solution. Yo
When you use GitHub to store your docs, Docs Module supports versioning. If you have multiple versions for your docs, there will be a combo-box on the UI to switch between versions. If you choose file system to store your docs, it does not support multiple versions.
-[The documents](docs.abp.io) for ABP framework is also using this module.
+[The documents](https://docs.abp.io/) for ABP framework is also using this module.
> Docs module follows the [module architecture best practices](../Best-Practices/Module-Architecture.md) guide.
diff --git a/docs/en/Tutorials/Part-2.md b/docs/en/Tutorials/Part-2.md
index 6d636d5ecb..50b90b516d 100644
--- a/docs/en/Tutorials/Part-2.md
+++ b/docs/en/Tutorials/Part-2.md
@@ -512,7 +512,7 @@ Open the `/src/app/book/book.component.html` and replace the content as shown be
{%{{{ '::Menu:Books' | abpLocalization }}}%}
-
+
diff --git a/docs/en/Tutorials/Part-3.md b/docs/en/Tutorials/Part-3.md
index 182ffa4005..24f922cb18 100644
--- a/docs/en/Tutorials/Part-3.md
+++ b/docs/en/Tutorials/Part-3.md
@@ -145,7 +145,7 @@ Open the `Pages/Books/Index.cshtml` and set the content of `abp-card-header` tag
@L["Books"]
-
+ @L["Books"]
-
+