Commit bd1a93f
authored
Proposed improvements before merging into original DO repo (#124)
* Move SqlInsertValuesCollection to Dml.Collections folder
* Add rows collection to SqlInsert
+ mark Values as obsolete
* Test for SqlInsert
* Correct switch from strict number of conditions to default number of conditions
- Return back WellKnown.MaxNumberOfConditions as [Obsolete];
- Add WellKnown.DefaultMaxNumberOfConditions as replacement;
- Initialize MultiRowInsertLevel2BatchSize with
DefalultMaxNumberOfConditions;
* Proper implementation of DomainConfiguration.MaxNumberOfConditions
- check if configuration instance is locked and deny changing if it is;
- initialized with well-known constant instead of literal value;
- added configuration element to have support for this parameter in
*.config files
* fix
* Add test for loading of DomainConfiguration with new property from config files
Offtop: tagLocation and other forgotten-to-add properties are tested
* Fix wrong translation of values section
* DomainConfiguration cloning clones MaxNumberOfConditions
* Return original types of properties in IPersistDescriptor
Keeps backwards compatibility
* Multi-row insert not only for 1-column tuples
- adds PersistParameterBinding.RowIndex + ctors to init the value,
by default row index is 0. This property will keep track of what row
of SqlPersistTask.Tuples is the source of value
- CommandFactory uses dedicated algorithms for Tuple and for collection
of Tuples. First one keeps original algorithm before any changes, and
the second one uses RowIndex to get required row and FieldIndex to
find value within row
- return original private SqlSessionHandler.Store() method, it works
without checking for count of values in tuples.
* No use of SqlInsert.Values, SqlInsert.ValueRows
- new InsertSection.NewRow removed, no need in it
- SqlInsert.Values type returned to original Dictionary, removed
internal collection type and.
- all usages of SqlInsert.Values
* IMultiRecordPersistDescriptor-related changes
- the interface properties renamed
- added lazy alternative for one-row request with default implementation
to IPersistRecord.StoreRequest. This keeps original interface API and
have lazy request. TemporaryTableDescriptor uses only lazy properties
as well as TemporaryTableManager, original StoreRequest implementaion in
TemporaryTableDescriptor returns Lazy<>.Value and hidded.
- WellKnown constants renamed accordingly to IMultiRecordPersistDescriptor
properties
- added summaries for interfaces' properties and WellKnown constants
* Rename file containing interfaces
* Remove unused code + commited code1 parent a60cd18 commit bd1a93f
45 files changed
Lines changed: 1037 additions & 635 deletions
File tree
- Extensions/Xtensive.Orm.BulkOperations/Internals
- Orm
- Xtensive.Orm.Tests.Framework
- Xtensive.Orm.Tests.Sql
- Oracle
- PostgreSql
- SqlServer
- Xtensive.Orm.Tests
- Configuration
- Issues
- Upgrade
- Xtensive.Orm
- Core/Extensions
- Orm
- Configuration
- Elements
- Providers
- CommandProcessing
- Interfaces
- Requests
- TemporaryTables
- Upgrade/Internals
- Metadata
- Sql
- Compiler
- Dml
- Collections
- Statements
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
Lines changed: 163 additions & 152 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
| 61 | + | |
56 | 62 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | | - | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
85 | 98 | | |
86 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
333 | 334 | | |
334 | | - | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
| 601 | + | |
603 | 602 | | |
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
607 | 606 | | |
608 | 607 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| |||
0 commit comments