maliming
206e4a9027
Hash the connection string in unit of work api keys
The api key can be written to logs as a part of an exception message
2 weeks ago
maliming
be8f078ea9
Keep the ambient cancellation token out of the entity paths
* Only the projected GetAsync passes it, that is the path Repository.GetAsync already covered
* Assert a single data query so a materialize-then-project implementation can not pass
* Opting out of the projection brings the entity based overrides back
2 weeks ago
maliming
3da29b2b35
Add asynchronous hooks and rename the query projection API
* IQueryProjector replaces IQueryableMapper, the hooks can await other queries to join them
* A projection must return one row per entity, the total count and the paging come before it
* Pass the ambient cancellation token and detect the missing entity for value type DTOs
2 weeks ago
maliming
d6876b8571
Rename the query projection API
* IQueryableMapper pairs with IObjectMapper, CreateEntityQueryAsync with CreateFilteredQueryAsync
2 weeks ago
maliming
f00d7df56c
Assert the projected SQL and fix the Mapperly sample in the docs
* RequiredMappingStrategy.Target avoids an RMG020 warning per unmapped entity property
2 weeks ago
maliming
029cc7de47
Fix query projection for CrudAppService and register projection mappers
* Fall back to GetEntityByIdAsync when a by-id query can not be created
* Expose IQueryProjectionMapper implementations like IObjectMapper does
* Document query projection and cover EF Core, MongoDB and Mapperly
2 weeks ago
maliming
bad079f145
Add tests for the aggregate root update on foreign key only relations
4 weeks ago
maliming
743cd7ac3c
Update the aggregate root only when the principal has a navigation
4 weeks ago
maliming
4681a852e3
Add HasAbpJsonConversion property builder extension
1 month ago
maliming
11b78a9e7c
Add MySQL type mapping plugin for Guid[] query parameters
1 month ago
maliming
71da95e1d9
Use a per-connection in-memory SQLite database in unit tests
2 months ago
maliming
6975e88d63
Use IsDeleted column TypeMapping in soft-delete DbFunction
3 months ago
maliming
f277b72cb5
Cover IMultiTenant filter and assert property name in expression
3 months ago
maliming
d373e15612
Use CLR property name in soft-delete and multi-tenant filters
3 months ago
maliming
7819e602ff
Detect EF Core database provider by keyword match
- Extract provider name mapping into EfCoreDatabaseProviderHelper
- Match provider names by Contains instead of exact switch, so newer assembly names (e.g. MySql.EntityFrameworkCore) are recognized without code changes
- Add unit tests covering real provider assemblies and string fallbacks
5 months ago
maliming
4bac0f1d76
Respect entity tracking by forcing AsTracking
6 months ago
maliming
bc2a8aef0d
Support nested complex properties & auditing tests
7 months ago
maliming
e487c0aaf2
Support auditing and history for complex properties
Resolve #24764
7 months ago
maliming
96a7303fc6
Revert "Add support and tests for entity history with JSON properties"
This reverts commit 4d00ee9365 .
8 months ago
SALİH ÖZKARA
4d00ee9365
Add support and tests for entity history with JSON properties
Introduces AppEntityWithJsonProperty and related DbSet to test contexts, configures model to handle owned JSON properties, and adds tests to verify entity history tracking for nested JSON property changes and shared entities. Refactors EntityHistoryHelper to improve navigation property change handling.
8 months ago
maliming
08b539403f
Set AbpSqliteOptions.BusyTimeout to null in test modules
9 months ago
maliming
01713685b7
Set AbpSqliteOptions.BusyTimeout to null in test modules
9 months ago
maliming
88bfa816bc
Improve foreign key change detection in domain events
https://abp.io/support/questions/10057
10 months ago
Halil İbrahim Kalkan
53a8babfa7
Rename SetCustomEntityName to SetEntityName in repositories
Refactored repository interfaces and implementations to replace SetCustomEntityName and CustomEntityName with SetEntityName and EntityName for consistency and clarity. Updated related extension methods and tests to use the new naming.
1 year ago
maliming
3ff8fb6e78
Upgrade to .NET 10.0.
1 year ago
erdemcaygor
38805d14f5
code refactoring
1 year ago
maliming
00d6120fdc
Refactor shared entity implementation and tests
1 year ago
maliming
1a8f0fc86e
Add `SharedEntity` base class and unit tests.
1 year ago
maliming
6fc6d0dc46
Remove unused CancellationToken from test
1 year ago
maliming
41afa537d8
Adjust performance test thresholds for GitHub Actions
1 year ago
maliming
fafb76172f
Refactor BlogPost entity and remove Post entity from tests
1 year ago
maliming
a3e2ccc881
Skip performance test on GitHub Actions CI
1 year ago
maliming
5124bd2dc7
Add `AbpEfCoreNavigationHelper_Tests`.
1 year ago
maliming
e770f89548
Refactor `DisableAuditingAttribute` to allow it to ignore changes to `AuditProperties`.
Resolve #23168
1 year ago
maliming
780f71131c
Add a default sort for `First/FirstOrDefault` and `Last/LastOrDefault`.
1 year ago
maliming
8865db1eb4
Add `IgnoredUpdateAggregateRootSelectors` to filter some specific entities.
1 year ago
maliming
6357bd6c04
Add unit test for `UpdateAggregateRootWhenNavigationChanges`.
1 year ago
maliming
6c8d37058d
Add `IgnoredNavigationEntitySelectors` to `AbpEntityChangeOptions` to ignore navigation properties.
2 years ago
Muximize
e49cba9bc9
Remove unused Usings
2 years ago
maliming
d3ec0619f2
Skip `DateTime_Kind_Should_Be_Normalized_In_View_Query_Test` test.
2 years ago
maliming
80e02d37dc
Fix the `AbpDateTimeValueConverter `.
https://github.com/dotnet/efcore/issues/34760
2 years ago
maliming
d3414f836c
Disable `AbpDateTimeValueConverter`.
There is a exception in EF Core 9, I'm trying to find a workaround.
2 years ago
maliming
ea7383ad35
Update `AbpRedisCache` to compatible net 9.
2 years ago
maliming
971dc3b8ba
Upgrade to NET 9.0.
2 years ago
maliming
078643680c
Backup `ExtraProperties` during `Reload` entry.
Because `Reload` will not convert the `ExtraProperties` from the JSON string to the `Dictionary`.
2 years ago
Mark Cilia Vincenti
de877d8a36
Cleaning up warnings.
2 years ago
maliming
59a6a257e6
Only remove the changed entities at end of `SaveChangesAsync` method.
Resolve #20384
2 years ago
maliming
3c8944cec5
Use DbFunction for global query filters.
Resolve #20062
2 years ago
maliming
abf2824305
Apply `AbpConcepts` to entities which navigation property changes.
Resolve #19962
2 years ago
maliming
150282386e
`PublishEntityUpdatedEvent` when foreign key and property are changed.
Resolve #19895
2 years ago