Skip to content

Support for passing in types that do not match exact entity type #12

Support for passing in types that do not match exact entity type

Support for passing in types that do not match exact entity type #12

GitHub Actions / Test Results (Windows) succeeded Nov 20, 2023 in 0s

Test Results (Windows) ✅

Tests passed successfully

✅ test/FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests/TestResults/test-results.trx

190 tests were completed in 26s with 190 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_InMemory 63✅ 9s
FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_Postgres 64✅ 10s
FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_Sqlite 63✅ 15s

✅ FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_InMemory

✅ ComputedColumn_Updates
✅ Upsert_100k_Insert_MultiQuery
✅ Upsert_Book_On_Insert
✅ Upsert_Book_On_Update
✅ Upsert_CompositeExpression_New
✅ Upsert_CompositeExpression_Update
✅ Upsert_ConditionalExpression_New
✅ Upsert_ConditionalExpression_UpdateFalse
✅ Upsert_ConditionalExpression_UpdateTrue
✅ Upsert_Country_Insert_On_WhenMatched
✅ Upsert_Country_Update_On
✅ Upsert_Country_Update_On_NoUpdate
✅ Upsert_Country_Update_On_WhenMatched_Constants
✅ Upsert_Country_Update_On_WhenMatched_Values
✅ Upsert_DashedTable
✅ Upsert_EFCore_KeyAutoGen
✅ Upsert_GuidKey
✅ Upsert_GuidKey_AutoGenThrows
✅ Upsert_IdentityKey_ExplicitOn_AllowWithOverride
✅ Upsert_IdentityKey_ExplicitOn_InvalidMatchColumn
✅ Upsert_IdentityKey_NoOn_AllowWithOverride
✅ Upsert_IdentityKey_NoOn_InvalidMatchColumn
✅ Upsert_InitialDbState
✅ Upsert_JObject_Update
✅ Upsert_JObjectData
✅ Upsert_JsonData
✅ Upsert_JsonData_Update
✅ Upsert_JsonData_Update_ComplexObject
✅ Upsert_KeyOnly
✅ Upsert_NullableKeys
✅ Upsert_NullableRequired_Insert
✅ Upsert_PageVisit_PreComputedOn
✅ Upsert_PageVisit_Update_On
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ColumnAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromField
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromVar
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_Reversed
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseAnd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseOr
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueDivide
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueModulo
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueMultiply
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueSubtract
✅ Upsert_SchemaTable
✅ Upsert_Status_Update_AutoMatched_Existing
✅ Upsert_Status_Update_AutoMatched_New
✅ Upsert_StringKey
✅ Upsert_StringKey_AutoGenThrows
✅ Upsert_UpdateCondition_AutoUpdate
✅ Upsert_UpdateCondition_Constant
✅ Upsert_UpdateCondition_New
✅ Upsert_UpdateCondition_New_AutoUpdate
✅ Upsert_UpdateCondition_NoUpdate
✅ Upsert_UpdateCondition_NullCheck
✅ Upsert_UpdateCondition_Update
✅ Upsert_UpdateCondition_ValueCheck
✅ Upsert_UpdateCondition_ValueCheck_UpdateColumnFromCondition
✅ UpsertRange_PageVisit_Update_On_WhenMatched
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleInsert
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate_FromSource

✅ FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_Postgres

✅ ComputedColumn_Updates
✅ GeneratedAlwaysAsIdentity_NoUpdate_New
✅ Upsert_100k_Insert_MultiQuery
✅ Upsert_Book_On_Insert
✅ Upsert_Book_On_Update
✅ Upsert_CompositeExpression_New
✅ Upsert_CompositeExpression_Update
✅ Upsert_ConditionalExpression_New
✅ Upsert_ConditionalExpression_UpdateFalse
✅ Upsert_ConditionalExpression_UpdateTrue
✅ Upsert_Country_Insert_On_WhenMatched
✅ Upsert_Country_Update_On
✅ Upsert_Country_Update_On_NoUpdate
✅ Upsert_Country_Update_On_WhenMatched_Constants
✅ Upsert_Country_Update_On_WhenMatched_Values
✅ Upsert_DashedTable
✅ Upsert_EFCore_KeyAutoGen
✅ Upsert_GuidKey
✅ Upsert_GuidKey_AutoGenThrows
✅ Upsert_IdentityKey_ExplicitOn_AllowWithOverride
✅ Upsert_IdentityKey_ExplicitOn_InvalidMatchColumn
✅ Upsert_IdentityKey_NoOn_AllowWithOverride
✅ Upsert_IdentityKey_NoOn_InvalidMatchColumn
✅ Upsert_InitialDbState
✅ Upsert_JObject_Update
✅ Upsert_JObjectData
✅ Upsert_JsonData
✅ Upsert_JsonData_Update
✅ Upsert_JsonData_Update_ComplexObject
✅ Upsert_KeyOnly
✅ Upsert_NullableKeys
✅ Upsert_NullableRequired_Insert
✅ Upsert_PageVisit_PreComputedOn
✅ Upsert_PageVisit_Update_On
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ColumnAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromField
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromVar
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_Reversed
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseAnd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseOr
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueDivide
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueModulo
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueMultiply
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueSubtract
✅ Upsert_SchemaTable
✅ Upsert_Status_Update_AutoMatched_Existing
✅ Upsert_Status_Update_AutoMatched_New
✅ Upsert_StringKey
✅ Upsert_StringKey_AutoGenThrows
✅ Upsert_UpdateCondition_AutoUpdate
✅ Upsert_UpdateCondition_Constant
✅ Upsert_UpdateCondition_New
✅ Upsert_UpdateCondition_New_AutoUpdate
✅ Upsert_UpdateCondition_NoUpdate
✅ Upsert_UpdateCondition_NullCheck
✅ Upsert_UpdateCondition_Update
✅ Upsert_UpdateCondition_ValueCheck
✅ Upsert_UpdateCondition_ValueCheck_UpdateColumnFromCondition
✅ UpsertRange_PageVisit_Update_On_WhenMatched
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleInsert
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate_FromSource

✅ FlexLabs.EntityFrameworkCore.Upsert.IntegrationTests.DbTests_Sqlite

✅ ComputedColumn_Updates
✅ Upsert_100k_Insert_MultiQuery
✅ Upsert_Book_On_Insert
✅ Upsert_Book_On_Update
✅ Upsert_CompositeExpression_New
✅ Upsert_CompositeExpression_Update
✅ Upsert_ConditionalExpression_New
✅ Upsert_ConditionalExpression_UpdateFalse
✅ Upsert_ConditionalExpression_UpdateTrue
✅ Upsert_Country_Insert_On_WhenMatched
✅ Upsert_Country_Update_On
✅ Upsert_Country_Update_On_NoUpdate
✅ Upsert_Country_Update_On_WhenMatched_Constants
✅ Upsert_Country_Update_On_WhenMatched_Values
✅ Upsert_DashedTable
✅ Upsert_EFCore_KeyAutoGen
✅ Upsert_GuidKey
✅ Upsert_GuidKey_AutoGenThrows
✅ Upsert_IdentityKey_ExplicitOn_AllowWithOverride
✅ Upsert_IdentityKey_ExplicitOn_InvalidMatchColumn
✅ Upsert_IdentityKey_NoOn_AllowWithOverride
✅ Upsert_IdentityKey_NoOn_InvalidMatchColumn
✅ Upsert_InitialDbState
✅ Upsert_JObject_Update
✅ Upsert_JObjectData
✅ Upsert_JsonData
✅ Upsert_JsonData_Update
✅ Upsert_JsonData_Update_ComplexObject
✅ Upsert_KeyOnly
✅ Upsert_NullableKeys
✅ Upsert_NullableRequired_Insert
✅ Upsert_PageVisit_PreComputedOn
✅ Upsert_PageVisit_Update_On
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ColumnAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_FromSource_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromField
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_FromVar
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueAdd_Reversed
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseAnd
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueBitwiseOr
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueDivide
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueModulo
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueMultiply
✅ Upsert_PageVisit_Update_On_WhenMatched_ValueSubtract
✅ Upsert_SchemaTable
✅ Upsert_Status_Update_AutoMatched_Existing
✅ Upsert_Status_Update_AutoMatched_New
✅ Upsert_StringKey
✅ Upsert_StringKey_AutoGenThrows
✅ Upsert_UpdateCondition_AutoUpdate
✅ Upsert_UpdateCondition_Constant
✅ Upsert_UpdateCondition_New
✅ Upsert_UpdateCondition_New_AutoUpdate
✅ Upsert_UpdateCondition_NoUpdate
✅ Upsert_UpdateCondition_NullCheck
✅ Upsert_UpdateCondition_Update
✅ Upsert_UpdateCondition_ValueCheck
✅ Upsert_UpdateCondition_ValueCheck_UpdateColumnFromCondition
✅ UpsertRange_PageVisit_Update_On_WhenMatched
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleInsert
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate
✅ UpsertRange_PageVisit_Update_On_WhenMatched_MultipleUpdate_FromSource