You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NetStandard.SqlBulkHelpers/NetStandard.SqlBulkHelpers.csproj
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,16 @@
13
13
<Description>A library for easy, efficient and high performance bulk insert and update of data, into a Sql Database, from .Net applications. By leveraging the power of the SqlBulkCopy classes with added support for Identity primary key table columns this library provides a greatly simplified interface to process Identity based Entities with Bulk Performance with the wide compatibility of .NetStandard 2.0.</Description>
- Added additional convenience methods to the `MaterializationContext` to retreive loading table info for models mapped via annotations (ModelType; vs only ordinal or string name).
17
-
- Added support to cancel the materialization process via new `MaterializationContext.CancelMaterializationProcess()` method; allows passive cancelling without the need to throw an exception to safely stop the process.
18
-
- Fixed small configuration initialization bugs when manually setting the `IsFullTextIndexHandlingEnabled` flag.
19
-
- Fixed small bug where default configuration was not being used as the fallback.
16
+
- Added support for other Identity column data types including (INT, BIGINT, SMALLINT, & TINYINT); per feature request (https://github.com/cajuncoding/SqlBulkHelpers/issues/10).
17
+
- Added support to explicitly set Identity Values (aka SET IDENTITY_INSERT ON) via new `enableIdentityInsert` api parameter.
18
+
- Added support to retreive and re-seed (aka set) the current Identity Value on a given table via new apis in the MaterializedData helpers.
19
+
- Additional small bug fixes and optimiaztions.
20
20
21
21
Prior Relese Notes:
22
+
- Added additional convenience methods to the `MaterializationContext` to retreive loading table info for models mapped via annotations (ModelType; vs only ordinal or string name).
23
+
- Added support to cancel the materialization process via new `MaterializationContext.CancelMaterializationProcess()` method; allows passive cancelling without the need to throw an exception to safely stop the process.
24
+
- Fixed small configuration initialization bugs when manually setting the `IsFullTextIndexHandlingEnabled` flag.
25
+
- Fixed small bug where default configuration was not being used as the fallback.
22
26
- Improve configuration of Timeouts and add support for Default DB Schema Loader timeout setting.
23
27
- v2.0 provides a simplified and easier to access API as Extension Methods of the SqlTransaction class; this is a breaking change for Sql Bulk Insert/Update/etc, but shoudl be easy to migrate to!
24
28
- v2.0 release also includes the NEW MaterializeData Helpers to make it significantly easier to implement highly efficient loading and publishing of materialized data via Sql Server much easier via an easy C# API.
@@ -43,7 +47,7 @@
43
47
- Added more Integration Tests for Constructors and Connections, as well as the new DB Schema Loader caching implementation.
44
48
- Fixed bug in dynamic initialization of SqlBulkHelpersConnectionProvider and SqlBulkHelpersDBSchemaLoader when not using the Default instances that automtically load the connection string from the application configuration setting.
Copy file name to clipboardExpand all lines: README.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,13 @@ public class TestDataService
215
215
## Nuget Package
216
216
To use in your project, add the [SqlBulkHelpers NuGet package](https://www.nuget.org/packages/SqlBulkHelpers/) to your project.
217
217
218
+
## v2.2 Release Notes:
219
+
- Added support for other Identity column data types including (INT, BIGINT, SMALLINT, & TINYINT); per [feature request here](https://github.com/cajuncoding/SqlBulkHelpers/issues/10).
220
+
- Added support to explicitly set Identity Values (aka SET IDENTITY_INSERT ON) via new `enableIdentityInsert` api parameter.
221
+
- Added support to retreive and re-seed (aka set) the current Identity Value on a given table via new apis in the MaterializedData helpers.
222
+
- Additional small bug fixes and optimiaztions.
223
+
224
+
218
225
## v2.1 Release Notes:
219
226
- Added additional convenience methods to the `MaterializationContext` to retreive loading table info for models mapped via annotations (ModelType; vs only ordinal or string name).
220
227
- Added support to cancel the materialization process via new `MaterializationContext.CancelMaterializationProcess()` method; allows passive cancelling without the need to throw an exception to safely stop the process.
@@ -389,6 +396,33 @@ disabled by setting the `SqlMergeMatchQualifierExpression.ThrowExceptionIfNonUni
389
396
390
397
```
391
398
399
+
### Explicitly setting Identity Values (aka SET IDENTITY_INSERT ON):
400
+
The normal process is for Identity values to be incrmented & set by SQL Server. However there are edge cases where you may need
401
+
to explicitly specify the Identity values and have those be set. An example of this may be if data was archived/backed-up elsewhere and
402
+
now needs to be restored; it's original Identity value may still be valid and need to be used for referential integrity.
403
+
404
+
This can now be done by simply specifying `enableIdentityInsert = true` parameter on the Bulk API calls as shown below...
405
+
406
+
**Warnging:**_It is your responsibility to test and validate your Identity values are valid on the Model; SQL Server may enforce
407
+
uniqueness if they are the PKey, etc. however bad data like default int value of Zero, or negative values may be saved with this feature._
408
+
409
+
```csharp
410
+
//Normally would be provided by Dependency Injection...
411
+
//This is a DI friendly connection factory/provider pattern that can be used...
0 commit comments