Commit Graph

13271 Commits

Author SHA1 Message Date
sunkaixuan
893430b2ae Update demo 2025-12-05 12:15:01 +08:00
sunkaixuan
6869f0bd9a Update exp to sql 2025-12-05 12:14:52 +08:00
sunkaixuan
5b23a75212 Add demo 2025-12-04 16:07:05 +08:00
sunkaixuan
f301783235 Update 达梦 2025-12-04 16:06:54 +08:00
sunkaixuan
dacf24ba13 Update 人大金仓 2025-12-04 15:32:53 +08:00
sunkaixuan
178b0a3c40 Update 人大金仓 2025-12-04 15:32:15 +08:00
sunkaixuan
e934bcdbf6 Update 人大金仓 2025-12-04 15:31:58 +08:00
sunkaixuan
68dd977725 Update nuget 2025-12-04 15:14:57 +08:00
sunkaixuan
afb6f7228d Add demo 2025-12-04 15:14:47 +08:00
sunkaixuan
545bba5696 Update nuget 2025-12-04 15:14:27 +08:00
sunkaixuan
5e9614038e - 2025-12-03 17:24:07 +08:00
sunkaixuan
49d4612c0a Update demo 2025-12-03 17:23:53 +08:00
sunkaixuan
fdd8c74273 Update 人大金仓 2025-12-03 17:22:13 +08:00
sunkaixuan
ccb6ddb0d3 Add demo 2025-12-03 16:58:11 +08:00
sunkaixuan
98dc2f1ddf Update 人大金仓 2025-12-03 16:56:50 +08:00
sunkaixuan
fa05baafac Update 人大金仓 2025-12-02 22:00:23 +08:00
sunkaixuan
24b6562523 Update db.InsertByOject 2025-12-02 16:47:11 +08:00
sunkaixuan
d7e59f0c9a Merge branch 'master' of https://github.com/DotNetNext/SqlSugar 2025-12-02 11:43:52 +08:00
sunkaixuan
738b0561ad Add demo 2025-12-02 11:34:02 +08:00
sunkaixuan
82d8a4096b Add demo 2025-12-01 16:45:40 +08:00
sunkaixuan
8235bbf21b Update mongodb 2025-12-01 16:45:31 +08:00
果糖网
32fd3eed44 Merge pull request #1404 from hsparks-codes/test/split-table-operations
test: Add comprehensive unit tests for Split Table Operations
2025-11-27 20:27:27 +08:00
hsparks-codes
8387e3ce61 Merge branch 'master' into test/split-table-operations 2025-11-27 07:26:53 -05:00
hsparks.codes
0afa19cd26 test: Add comprehensive unit tests for Split Table Operations
Added 25 comprehensive test cases for Split Table Operations:

 Basic Split Table Tests (Tests 1-4):
- Split by Year
- Split by Month
- Split by Day
- Split by Week

 Query Operations (Tests 5-8):
- Single table query
- Multiple tables union
- Date range queries
- Where condition filtering

 Update Operations (Tests 9-11):
- Single record update
- Multiple records update
- Cross-table updates

 Delete Operations (Tests 12-14):
- Single record delete
- Date range delete
- Entire table delete

 Advanced Features (Tests 15-18):
- Get split table list
- Auto table generation
- Custom split field
- Paginated queries across tables

 Bulk Operations (Tests 19-20):
- Bulk insert across multiple tables
- Bulk update across multiple tables

 Edge Cases (Tests 21-25):
- Empty table queries
- Future date inserts
- Historical data queries
- Auto-create non-existent tables
- Performance with large datasets (1000 records)

Test entities:
- OrderByYear (Year-based partitioning)
- LogByMonth (Month-based partitioning)
- EventByDay (Day-based partitioning)
- TaskByWeek (Week-based partitioning)

All tests include:
- Date-based table partitioning
- CRUD operations across split tables
- Performance metrics
- Validation assertions
- Console output tracking
2025-11-27 06:05:35 +01:00
果糖网
d46bc2be0e Merge pull request #1403 from hsparks-codes/test/navigation-properties
test: Add comprehensive unit tests for Navigation Properties
2025-11-27 12:55:04 +08:00
hsparks.codes
cd212f0519 test: Add comprehensive unit tests for Navigation Properties
Added 25 comprehensive test cases for Navigation Properties:

 InsertNav Tests (Tests 1-5):
- One-to-One relationships
- One-to-Many relationships
- Many-to-Many relationships
- Deep nesting (3 levels)
- InsertNavOptions configuration

 UpdateNav Tests (Tests 6-10):
- One-to-One updates
- One-to-Many updates
- Many-to-Many updates
- Add new children
- Remove existing children

 DeleteNav Tests (Tests 11-14):
- One-to-One cascade delete
- One-to-Many cascade delete
- Many-to-Many cascade delete
- Deep cascade delete (3 levels)

 Complex Scenarios (Tests 15-18):
- Circular reference handling
- Change relationship
- Null navigation properties
- Empty collections

 Async Operations (Tests 19-21):
- InsertNavAsync
- UpdateNavAsync
- DeleteNavAsync

 Edge Cases (Tests 22-25):
- Existing children handling
- Partial updates
- Orphaned records
- Multi-level hierarchy

Test entities:
- Customer, CustomerProfile (One-to-One)
- Customer, Order, OrderItem (One-to-Many, nested)
- Student, Course, StudentCourse (Many-to-Many)

All tests include:
- Proper relationship setup
- Cascade operations
- Validation assertions
- Console output tracking
2025-11-27 05:51:51 +01:00
果糖网
861c3294df Merge pull request #1402 from hsparks-codes/test/fastest-bulk-operations
test: Add comprehensive unit tests for Fastest (Bulk Operations)
2025-11-27 12:35:37 +08:00
hsparks.codes
fd7429192e test: Add comprehensive unit tests for Fastest (Bulk Operations)
Added 25 comprehensive test cases for Fastest bulk operations:

 BulkCopy Tests (Tests 1-5):
- Basic list insertion (100 records)
- Large dataset performance (5000 records)
- PageSize batch processing (1000 records in batches of 250)
- DataTable bulk copy
- AS() table name specification

 BulkUpdate Tests (Tests 6-9):
- Basic bulk update (100 records)
- Custom columns update (selective columns)
- Large dataset update (2000 records)
- WhereColumns for custom key matching

 BulkMerge Tests (Tests 10-12):
- Basic insert/update merge (50 update + 50 insert)
- Custom key columns for merge
- Large dataset merge (3000 records)

 BulkDelete Tests (Tests 13-14):
- Basic bulk delete by list
- Conditional delete with Where clause

 Async Operations (Tests 15-17):
- BulkCopyAsync
- BulkUpdateAsync
- BulkMergeAsync

 Performance Benchmarks (Tests 18-19):
- BulkCopy vs Regular Insert comparison
- BulkUpdate vs Regular Update comparison
- Speed improvement metrics

 Edge Cases (Tests 20-23):
- Empty list handling
- Null values in nullable fields
- Duplicate key error handling
- Complex types (DateTime, Decimal, Boolean)

 Advanced Features (Tests 24-25):
- RemoveDataCache()
- IgnoreInsertError()

Test entities:
- Product (with auto-increment primary key)
- Customer (with string primary key)

All tests include:
- Performance metrics (time, records/sec)
- Proper setup/teardown
- Validation assertions
- Console output for tracking
2025-11-27 05:29:41 +01:00
果糖网
f0db00aa90 Merge pull request #1401 from hsparks-codes/test/storageable-batch-upsert
test: Add comprehensive unit tests for Storageable (Batch Upsert)
2025-11-27 11:43:46 +08:00
hsparks.codes
9f17ee181c test: Add comprehensive unit tests for Storageable (Batch Upsert)
Added 25 comprehensive test cases covering:

Basic Operations:
- Test01: Basic Saveable (Insert/Update)
- Test02: SplitInsert/Update/Delete
- Test03: WhereColumns with custom keys
- Test04: DefaultAddElseUpdate with primary key

Advanced Features:
- Test05: SplitError for error handling
- Test06: SplitIgnore for conditional ignoring
- Test07: SplitOther for custom categories
- Test08: TableDataRange for filtered queries

Batch Processing:
- Test09: PageSize for batch processing
- Test10: Large dataset performance (1000 records)

Async Operations:
- Test11: Async ExecuteCommandAsync
- Test12: Async with CancellationToken

Edge Cases:
- Test13: Empty list handling
- Test14: Null values in nullable fields
- Test15: Duplicate keys in input
- Test16: Complex types (DateTime, Decimal)

Bulk Operations:
- Test17: ExecuteSqlBulkCopy
- Test18: BulkUpdate via Storageable

Transaction & Locking:
- Test19: TranLock for transaction locking
- Test20: DisableFilters

Return Values:
- Test21: ExecuteReturnEntity
- Test22: ToStorage detailed results

Advanced:
- Test23: SplitTable support
- Test24: Custom messages in operations
- Test25: Multiple split conditions

All tests follow existing MySqlTest patterns and include:
- Proper setup/teardown
- Validation assertions
- Console output for tracking
- Error handling
2025-11-27 04:34:10 +01:00
果糖网
f6bf1c7eda Merge pull request #1394 from 0xsatoshi99/feat/unit-sugar-retry
feat: add unit test for SugarRetry
2025-11-26 17:51:47 +08:00
Satoshi Dev
fcc028e529 Merge branch 'master' into feat/unit-sugar-retry 2025-11-26 01:48:22 -08:00
0xsatoshi99
5afdd78d46 feat: add unit test for SugarRetry 2025-11-26 10:46:14 +01:00
果糖网
b58800a5fe Merge pull request #1387 from SmartDever02/feat/unit-util-extensions
feat: complete unit test script for util extensions
2025-11-26 15:35:34 +08:00
SmartDever02
fc28c7703b feat: complete unit test script for util extensions 2025-11-25 13:17:44 -03:00
果糖网
ace64e45b9 Merge pull request #1386 from codomposer/feat/unit-validate-extensions
feat: complete unit test script for validate extensions
2025-11-25 19:54:31 +08:00
sunkaixuan
483281ba1a Update mongdob 2025-11-25 19:43:23 +08:00
codomposer
d86bd941b1 chore: update the comments for better understanding 2025-11-24 08:53:35 -05:00
codomposer
d15ead572c feat: complete unit test script for validate extensions 2025-11-24 08:45:47 -05:00
sunkaixuan
e974f70c16 Update demo 2025-11-24 15:53:50 +08:00
果糖网
d25bd84f8c Merge pull request #1385 from codomposer/feat/unit-util-convert
feat: complete unit test script for util convert
2025-11-24 10:15:38 +08:00
codomposer
8778080356 feat: complete unit test script for util convert 2025-11-23 11:55:17 -05:00
sunkaixuan
3c2420bbbf Merge branch 'master' of https://github.com/DotNetNext/SqlSugar 2025-11-23 11:57:59 +08:00
sunkaixuan
e7d45a9a93 Update db.QueryableByObject 2025-11-23 11:57:30 +08:00
果糖网
d5b17f5a1e Merge pull request #1384 from codomposer/feat/unit-async-delete
feat: complete async delete script in unit test scripts
2025-11-23 11:42:39 +08:00
codomposer
34ce2e361e feat: complete async delete script in unit test scripts 2025-11-22 20:41:23 -05:00
果糖网
3abf762fc4 Merge pull request #1383 from codomposer/feat/unit_async_update
Feat/unit async update
2025-11-22 17:50:21 +08:00
codomposer
98d43b2bd8 restore settings 2025-11-21 08:49:50 -05:00
codomposer
040591e6ca feat: complete u async update test script 2025-11-21 08:28:56 -05:00
sunkaixuan
7fc2f651c1 Update demo test 2025-11-21 20:35:24 +08:00