diff --git a/samples/core/Benchmarks/Benchmarks.csproj b/samples/core/Benchmarks/Benchmarks.csproj index 78828157d7..96d59c5431 100644 --- a/samples/core/Benchmarks/Benchmarks.csproj +++ b/samples/core/Benchmarks/Benchmarks.csproj @@ -6,8 +6,8 @@ - - - + + + diff --git a/samples/core/CascadeDeletes/CascadeDeletes.csproj b/samples/core/CascadeDeletes/CascadeDeletes.csproj index 264cb1df38..aaef7d6e8b 100644 --- a/samples/core/CascadeDeletes/CascadeDeletes.csproj +++ b/samples/core/CascadeDeletes/CascadeDeletes.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/samples/core/ChangeTracking/AccessingTrackedEntities/AccessingTrackedEntities.csproj b/samples/core/ChangeTracking/AccessingTrackedEntities/AccessingTrackedEntities.csproj index 9a41be730d..efeaf06921 100644 --- a/samples/core/ChangeTracking/AccessingTrackedEntities/AccessingTrackedEntities.csproj +++ b/samples/core/ChangeTracking/AccessingTrackedEntities/AccessingTrackedEntities.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/ChangeTracking/AdditionalChangeTrackingFeatures/AdditionalChangeTrackingFeatures.csproj b/samples/core/ChangeTracking/AdditionalChangeTrackingFeatures/AdditionalChangeTrackingFeatures.csproj index 9a41be730d..efeaf06921 100644 --- a/samples/core/ChangeTracking/AdditionalChangeTrackingFeatures/AdditionalChangeTrackingFeatures.csproj +++ b/samples/core/ChangeTracking/AdditionalChangeTrackingFeatures/AdditionalChangeTrackingFeatures.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/ChangeTracking/ChangeDetectionAndNotifications/ChangeDetectionAndNotifications.csproj b/samples/core/ChangeTracking/ChangeDetectionAndNotifications/ChangeDetectionAndNotifications.csproj index 0871f9909a..8b0bd6ebc5 100644 --- a/samples/core/ChangeTracking/ChangeDetectionAndNotifications/ChangeDetectionAndNotifications.csproj +++ b/samples/core/ChangeTracking/ChangeDetectionAndNotifications/ChangeDetectionAndNotifications.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/samples/core/ChangeTracking/ChangeTrackerDebugging/ChangeTrackerDebugging.csproj b/samples/core/ChangeTracking/ChangeTrackerDebugging/ChangeTrackerDebugging.csproj index 9a41be730d..efeaf06921 100644 --- a/samples/core/ChangeTracking/ChangeTrackerDebugging/ChangeTrackerDebugging.csproj +++ b/samples/core/ChangeTracking/ChangeTrackerDebugging/ChangeTrackerDebugging.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/ChangeTracking/ChangeTrackingInEFCore/ChangeTrackingInEFCore.csproj b/samples/core/ChangeTracking/ChangeTrackingInEFCore/ChangeTrackingInEFCore.csproj index 9a41be730d..efeaf06921 100644 --- a/samples/core/ChangeTracking/ChangeTrackingInEFCore/ChangeTrackingInEFCore.csproj +++ b/samples/core/ChangeTracking/ChangeTrackingInEFCore/ChangeTrackingInEFCore.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/ChangeTracking/ChangingFKsAndNavigations/ChangingFKsAndNavigations.csproj b/samples/core/ChangeTracking/ChangingFKsAndNavigations/ChangingFKsAndNavigations.csproj index 9a41be730d..efeaf06921 100644 --- a/samples/core/ChangeTracking/ChangingFKsAndNavigations/ChangingFKsAndNavigations.csproj +++ b/samples/core/ChangeTracking/ChangingFKsAndNavigations/ChangingFKsAndNavigations.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/ChangeTracking/IdentityResolutionInEFCore/IdentityResolutionInEFCore.csproj b/samples/core/ChangeTracking/IdentityResolutionInEFCore/IdentityResolutionInEFCore.csproj index 74adccd409..c8c3371246 100644 --- a/samples/core/ChangeTracking/IdentityResolutionInEFCore/IdentityResolutionInEFCore.csproj +++ b/samples/core/ChangeTracking/IdentityResolutionInEFCore/IdentityResolutionInEFCore.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/Cosmos/Cosmos.csproj b/samples/core/Cosmos/Cosmos.csproj index 1c1d7003e3..d143e6842b 100644 --- a/samples/core/Cosmos/Cosmos.csproj +++ b/samples/core/Cosmos/Cosmos.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/DbContextPooling/DbContextPooling.csproj b/samples/core/DbContextPooling/DbContextPooling.csproj index 08a6ae5322..f9b1235896 100644 --- a/samples/core/DbContextPooling/DbContextPooling.csproj +++ b/samples/core/DbContextPooling/DbContextPooling.csproj @@ -5,6 +5,6 @@ Samples - + diff --git a/samples/core/GetStarted/EFGetStarted.csproj b/samples/core/GetStarted/EFGetStarted.csproj index 8e60e5c1a8..f39b8136aa 100644 --- a/samples/core/GetStarted/EFGetStarted.csproj +++ b/samples/core/GetStarted/EFGetStarted.csproj @@ -7,8 +7,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/samples/core/Intro/Intro.csproj b/samples/core/Intro/Intro.csproj index f5de2900b2..d532f832f9 100644 --- a/samples/core/Intro/Intro.csproj +++ b/samples/core/Intro/Intro.csproj @@ -7,8 +7,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/samples/core/Miscellaneous/Async/Async.csproj b/samples/core/Miscellaneous/Async/Async.csproj index a720dd1752..ad4ef4db72 100644 --- a/samples/core/Miscellaneous/Async/Async.csproj +++ b/samples/core/Miscellaneous/Async/Async.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Miscellaneous/AsyncWithSystemInteractive/AsyncWithSystemInteractive.csproj b/samples/core/Miscellaneous/AsyncWithSystemInteractive/AsyncWithSystemInteractive.csproj index 7f1c0328cd..ead85c5afc 100644 --- a/samples/core/Miscellaneous/AsyncWithSystemInteractive/AsyncWithSystemInteractive.csproj +++ b/samples/core/Miscellaneous/AsyncWithSystemInteractive/AsyncWithSystemInteractive.csproj @@ -8,9 +8,9 @@ - + - + diff --git a/samples/core/Miscellaneous/CachingInterception/CachingInterception.csproj b/samples/core/Miscellaneous/CachingInterception/CachingInterception.csproj index e9344554d1..b36a84465e 100644 --- a/samples/core/Miscellaneous/CachingInterception/CachingInterception.csproj +++ b/samples/core/Miscellaneous/CachingInterception/CachingInterception.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/Collations/Collations.csproj b/samples/core/Miscellaneous/Collations/Collations.csproj index 99b9fbd43b..51ae6edf34 100644 --- a/samples/core/Miscellaneous/Collations/Collations.csproj +++ b/samples/core/Miscellaneous/Collations/Collations.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Miscellaneous/CommandInterception/CommandInterception.csproj b/samples/core/Miscellaneous/CommandInterception/CommandInterception.csproj index 63563dfb99..674bc576cd 100644 --- a/samples/core/Miscellaneous/CommandInterception/CommandInterception.csproj +++ b/samples/core/Miscellaneous/CommandInterception/CommandInterception.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/CommandLine/CommandLine.csproj b/samples/core/Miscellaneous/CommandLine/CommandLine.csproj index 0281d6c5b6..88bc338d47 100644 --- a/samples/core/Miscellaneous/CommandLine/CommandLine.csproj +++ b/samples/core/Miscellaneous/CommandLine/CommandLine.csproj @@ -5,8 +5,8 @@ - - + + diff --git a/samples/core/Miscellaneous/CompiledModels/CompiledModels.csproj b/samples/core/Miscellaneous/CompiledModels/CompiledModels.csproj index 0574916ca2..097e582056 100644 --- a/samples/core/Miscellaneous/CompiledModels/CompiledModels.csproj +++ b/samples/core/Miscellaneous/CompiledModels/CompiledModels.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/samples/core/Miscellaneous/ConfiguringDbContext/ConfiguringDbContext.csproj b/samples/core/Miscellaneous/ConfiguringDbContext/ConfiguringDbContext.csproj index a4f31a051a..8af3e541f5 100644 --- a/samples/core/Miscellaneous/ConfiguringDbContext/ConfiguringDbContext.csproj +++ b/samples/core/Miscellaneous/ConfiguringDbContext/ConfiguringDbContext.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/Miscellaneous/ConnectionInterception/ConnectionInterception.csproj b/samples/core/Miscellaneous/ConnectionInterception/ConnectionInterception.csproj index 1b741fc234..c4f724dd8d 100644 --- a/samples/core/Miscellaneous/ConnectionInterception/ConnectionInterception.csproj +++ b/samples/core/Miscellaneous/ConnectionInterception/ConnectionInterception.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Miscellaneous/ConnectionResiliency/ConnectionResiliency.csproj b/samples/core/Miscellaneous/ConnectionResiliency/ConnectionResiliency.csproj index c12b01ae41..a8cf1cd80b 100644 --- a/samples/core/Miscellaneous/ConnectionResiliency/ConnectionResiliency.csproj +++ b/samples/core/Miscellaneous/ConnectionResiliency/ConnectionResiliency.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Miscellaneous/DiagnosticListeners/DiagnosticListeners.csproj b/samples/core/Miscellaneous/DiagnosticListeners/DiagnosticListeners.csproj index e9344554d1..b36a84465e 100644 --- a/samples/core/Miscellaneous/DiagnosticListeners/DiagnosticListeners.csproj +++ b/samples/core/Miscellaneous/DiagnosticListeners/DiagnosticListeners.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/Events/Events.csproj b/samples/core/Miscellaneous/Events/Events.csproj index e9344554d1..b36a84465e 100644 --- a/samples/core/Miscellaneous/Events/Events.csproj +++ b/samples/core/Miscellaneous/Events/Events.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/Logging/Logging/Logging.csproj b/samples/core/Miscellaneous/Logging/Logging/Logging.csproj index e5f1183a3b..e465e2525c 100644 --- a/samples/core/Miscellaneous/Logging/Logging/Logging.csproj +++ b/samples/core/Miscellaneous/Logging/Logging/Logging.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Miscellaneous/Logging/SimpleLogging/SimpleLogging.csproj b/samples/core/Miscellaneous/Logging/SimpleLogging/SimpleLogging.csproj index 1ef2901276..6a641a9b86 100755 --- a/samples/core/Miscellaneous/Logging/SimpleLogging/SimpleLogging.csproj +++ b/samples/core/Miscellaneous/Logging/SimpleLogging/SimpleLogging.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/samples/core/Miscellaneous/Multitenancy/MultiDb/MultiDb.csproj b/samples/core/Miscellaneous/Multitenancy/MultiDb/MultiDb.csproj index 48fe821d89..8b620290ab 100644 --- a/samples/core/Miscellaneous/Multitenancy/MultiDb/MultiDb.csproj +++ b/samples/core/Miscellaneous/Multitenancy/MultiDb/MultiDb.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/Multitenancy/SingleDbSingleTable/SingleDbSingleTable.csproj b/samples/core/Miscellaneous/Multitenancy/SingleDbSingleTable/SingleDbSingleTable.csproj index 48fe821d89..8b620290ab 100644 --- a/samples/core/Miscellaneous/Multitenancy/SingleDbSingleTable/SingleDbSingleTable.csproj +++ b/samples/core/Miscellaneous/Multitenancy/SingleDbSingleTable/SingleDbSingleTable.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/NewInEFCore6.Cosmos/NewInEFCore6.Cosmos.csproj b/samples/core/Miscellaneous/NewInEFCore6.Cosmos/NewInEFCore6.Cosmos.csproj index e4be46eb5c..96f4f784df 100644 --- a/samples/core/Miscellaneous/NewInEFCore6.Cosmos/NewInEFCore6.Cosmos.csproj +++ b/samples/core/Miscellaneous/NewInEFCore6.Cosmos/NewInEFCore6.Cosmos.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Miscellaneous/NewInEFCore6/NewInEFCore6.csproj b/samples/core/Miscellaneous/NewInEFCore6/NewInEFCore6.csproj index 00e2bcbdcf..655ba6192c 100644 --- a/samples/core/Miscellaneous/NewInEFCore6/NewInEFCore6.csproj +++ b/samples/core/Miscellaneous/NewInEFCore6/NewInEFCore6.csproj @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/samples/core/Miscellaneous/NullableReferenceTypes/NullableReferenceTypes.csproj b/samples/core/Miscellaneous/NullableReferenceTypes/NullableReferenceTypes.csproj index 958e4099ed..1698c17445 100644 --- a/samples/core/Miscellaneous/NullableReferenceTypes/NullableReferenceTypes.csproj +++ b/samples/core/Miscellaneous/NullableReferenceTypes/NullableReferenceTypes.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Miscellaneous/SaveChangesInterception/SaveChangesInterception.csproj b/samples/core/Miscellaneous/SaveChangesInterception/SaveChangesInterception.csproj index e9344554d1..b36a84465e 100644 --- a/samples/core/Miscellaneous/SaveChangesInterception/SaveChangesInterception.csproj +++ b/samples/core/Miscellaneous/SaveChangesInterception/SaveChangesInterception.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Modeling/BackingFields/BackingFields.csproj b/samples/core/Modeling/BackingFields/BackingFields.csproj index c63dec4efe..a60e5ed7df 100644 --- a/samples/core/Modeling/BackingFields/BackingFields.csproj +++ b/samples/core/Modeling/BackingFields/BackingFields.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/BulkConfiguration/BulkConfiguration.csproj b/samples/core/Modeling/BulkConfiguration/BulkConfiguration.csproj index 18404c9768..208a9a1032 100644 --- a/samples/core/Modeling/BulkConfiguration/BulkConfiguration.csproj +++ b/samples/core/Modeling/BulkConfiguration/BulkConfiguration.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/ConcurrencyTokens/ConcurrencyTokens.csproj b/samples/core/Modeling/ConcurrencyTokens/ConcurrencyTokens.csproj index 88f3930774..b4015660af 100644 --- a/samples/core/Modeling/ConcurrencyTokens/ConcurrencyTokens.csproj +++ b/samples/core/Modeling/ConcurrencyTokens/ConcurrencyTokens.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/DataSeeding/DataSeeding.csproj b/samples/core/Modeling/DataSeeding/DataSeeding.csproj index 2f4d09a7e8..c879bb4fae 100644 --- a/samples/core/Modeling/DataSeeding/DataSeeding.csproj +++ b/samples/core/Modeling/DataSeeding/DataSeeding.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Modeling/DynamicModel/DynamicModel.csproj b/samples/core/Modeling/DynamicModel/DynamicModel.csproj index 3d58a15cc7..4747792da8 100644 --- a/samples/core/Modeling/DynamicModel/DynamicModel.csproj +++ b/samples/core/Modeling/DynamicModel/DynamicModel.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/DynamicModel/DynamicModelCacheKeyFactory.cs b/samples/core/Modeling/DynamicModel/DynamicModelCacheKeyFactory.cs index 385b34552a..f27fbc9686 100644 --- a/samples/core/Modeling/DynamicModel/DynamicModelCacheKeyFactory.cs +++ b/samples/core/Modeling/DynamicModel/DynamicModelCacheKeyFactory.cs @@ -6,9 +6,9 @@ namespace EFModeling.DynamicModel; #region DynamicModel public class DynamicModelCacheKeyFactory : IModelCacheKeyFactory { - public object Create(DbContext context) + public object Create(DbContext context, bool designTime) => context is DynamicContext dynamicContext - ? (context.GetType(), dynamicContext.UseIntProperty) + ? (context.GetType(), dynamicContext.UseIntProperty, designTime) : (object)context.GetType(); } -#endregion \ No newline at end of file +#endregion diff --git a/samples/core/Modeling/EntityProperties/EntityProperties.csproj b/samples/core/Modeling/EntityProperties/EntityProperties.csproj index af5fda12df..92d5fbe88e 100644 --- a/samples/core/Modeling/EntityProperties/EntityProperties.csproj +++ b/samples/core/Modeling/EntityProperties/EntityProperties.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/EntityTypes/EntityTypes.csproj b/samples/core/Modeling/EntityTypes/EntityTypes.csproj index 744eb1c83b..1ad1eb699d 100644 --- a/samples/core/Modeling/EntityTypes/EntityTypes.csproj +++ b/samples/core/Modeling/EntityTypes/EntityTypes.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/EntityTypes/FluentAPI/TableComment.cs b/samples/core/Modeling/EntityTypes/FluentAPI/TableComment.cs index bd83a0b943..58fb16a78a 100644 --- a/samples/core/Modeling/EntityTypes/FluentAPI/TableComment.cs +++ b/samples/core/Modeling/EntityTypes/FluentAPI/TableComment.cs @@ -9,8 +9,8 @@ internal class MyContext : DbContext #region TableComment protected override void OnModelCreating(ModelBuilder modelBuilder) { - modelBuilder.Entity() - .HasComment("Blogs managed on the website"); + modelBuilder.Entity().ToTable( + tableBuilder => tableBuilder.HasComment("Blogs managed on the website")); } #endregion } @@ -19,4 +19,4 @@ public class Blog { public int BlogId { get; set; } public string Url { get; set; } -} \ No newline at end of file +} diff --git a/samples/core/Modeling/GeneratedProperties/GeneratedProperties.csproj b/samples/core/Modeling/GeneratedProperties/GeneratedProperties.csproj index 09ea69abe2..fd30e3fefc 100644 --- a/samples/core/Modeling/GeneratedProperties/GeneratedProperties.csproj +++ b/samples/core/Modeling/GeneratedProperties/GeneratedProperties.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/IndexesAndConstraints/FluentAPI/CheckConstraint.cs b/samples/core/Modeling/IndexesAndConstraints/FluentAPI/CheckConstraint.cs index fe0c4f5110..08abe83a9b 100644 --- a/samples/core/Modeling/IndexesAndConstraints/FluentAPI/CheckConstraint.cs +++ b/samples/core/Modeling/IndexesAndConstraints/FluentAPI/CheckConstraint.cs @@ -9,8 +9,9 @@ internal class MyContext : DbContext #region CheckConstraint protected override void OnModelCreating(ModelBuilder modelBuilder) { - modelBuilder.Entity() - .HasCheckConstraint("CK_Prices", "[Price] > [DiscountedPrice]", c => c.HasName("CK_Product_Prices")); + modelBuilder + .Entity() + .ToTable(b => b.HasCheckConstraint("CK_Prices", "[Price] > [DiscountedPrice]")); } #endregion } @@ -20,4 +21,4 @@ public class Product public int Id { get; set; } public decimal Price { get; set; } public decimal DiscountedPrice { get; set; } -} \ No newline at end of file +} diff --git a/samples/core/Modeling/IndexesAndConstraints/IndexesAndConstraints.csproj b/samples/core/Modeling/IndexesAndConstraints/IndexesAndConstraints.csproj index b7f7a4c31b..180e50489f 100644 --- a/samples/core/Modeling/IndexesAndConstraints/IndexesAndConstraints.csproj +++ b/samples/core/Modeling/IndexesAndConstraints/IndexesAndConstraints.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/Inheritance/Inheritance.csproj b/samples/core/Modeling/Inheritance/Inheritance.csproj index 41d77dbb9e..7f3698efda 100644 --- a/samples/core/Modeling/Inheritance/Inheritance.csproj +++ b/samples/core/Modeling/Inheritance/Inheritance.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/KeylessEntityTypes/KeylessEntityTypes.csproj b/samples/core/Modeling/KeylessEntityTypes/KeylessEntityTypes.csproj index 4da9ee865c..3d5566ee93 100644 --- a/samples/core/Modeling/KeylessEntityTypes/KeylessEntityTypes.csproj +++ b/samples/core/Modeling/KeylessEntityTypes/KeylessEntityTypes.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/Keys/Keys.csproj b/samples/core/Modeling/Keys/Keys.csproj index 4a31bb41b5..b4d0a93394 100644 --- a/samples/core/Modeling/Keys/Keys.csproj +++ b/samples/core/Modeling/Keys/Keys.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/Misc/Misc.csproj b/samples/core/Modeling/Misc/Misc.csproj index 88f3930774..b4015660af 100644 --- a/samples/core/Modeling/Misc/Misc.csproj +++ b/samples/core/Modeling/Misc/Misc.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/OwnedEntities/OwnedEntities.csproj b/samples/core/Modeling/OwnedEntities/OwnedEntities.csproj index 34199ef56d..53d213885c 100644 --- a/samples/core/Modeling/OwnedEntities/OwnedEntities.csproj +++ b/samples/core/Modeling/OwnedEntities/OwnedEntities.csproj @@ -8,11 +8,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/samples/core/Modeling/Relationships/Relationships.csproj b/samples/core/Modeling/Relationships/Relationships.csproj index 35bc009f80..7a9a7d376d 100644 --- a/samples/core/Modeling/Relationships/Relationships.csproj +++ b/samples/core/Modeling/Relationships/Relationships.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/Sequences/Sequences.csproj b/samples/core/Modeling/Sequences/Sequences.csproj index 6cbbb2af3c..d45a0bfab1 100644 --- a/samples/core/Modeling/Sequences/Sequences.csproj +++ b/samples/core/Modeling/Sequences/Sequences.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/ShadowAndIndexerProperties/ShadowAndIndexerProperties.csproj b/samples/core/Modeling/ShadowAndIndexerProperties/ShadowAndIndexerProperties.csproj index e3cfaf8289..aa0e9274a7 100644 --- a/samples/core/Modeling/ShadowAndIndexerProperties/ShadowAndIndexerProperties.csproj +++ b/samples/core/Modeling/ShadowAndIndexerProperties/ShadowAndIndexerProperties.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Modeling/TableSplitting/DetailedOrder.cs b/samples/core/Modeling/TableSplitting/DetailedOrder.cs index fa494d9904..06f52e0422 100644 --- a/samples/core/Modeling/TableSplitting/DetailedOrder.cs +++ b/samples/core/Modeling/TableSplitting/DetailedOrder.cs @@ -9,4 +9,4 @@ public class DetailedOrder public string ShippingAddress { get; set; } public byte[] Version { get; set; } } -#endregion \ No newline at end of file +#endregion diff --git a/samples/core/Modeling/TableSplitting/TableSplitting.csproj b/samples/core/Modeling/TableSplitting/TableSplitting.csproj index 1db5f8cb58..26c026e2bc 100644 --- a/samples/core/Modeling/TableSplitting/TableSplitting.csproj +++ b/samples/core/Modeling/TableSplitting/TableSplitting.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Modeling/TableSplitting/TableSplittingContext.cs b/samples/core/Modeling/TableSplitting/TableSplittingContext.cs index 3e1bea5a9d..ec891e91fc 100644 --- a/samples/core/Modeling/TableSplitting/TableSplittingContext.cs +++ b/samples/core/Modeling/TableSplitting/TableSplittingContext.cs @@ -28,6 +28,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) ob.Property(o => o.Status).HasColumnName("Status"); ob.HasOne(o => o.DetailedOrder).WithOne() .HasForeignKey(o => o.Id); + ob.Navigation(o => o.DetailedOrder).IsRequired(); }); #endregion @@ -39,4 +40,4 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .Property(o => o.Version).IsRowVersion().HasColumnName("Version"); #endregion } -} \ No newline at end of file +} diff --git a/samples/core/Modeling/ValueConversions/ValueConversions.csproj b/samples/core/Modeling/ValueConversions/ValueConversions.csproj index 22f84deb7c..cab88eff0c 100644 --- a/samples/core/Modeling/ValueConversions/ValueConversions.csproj +++ b/samples/core/Modeling/ValueConversions/ValueConversions.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Performance/AspNetContextPooling/AspNetContextPooling.csproj b/samples/core/Performance/AspNetContextPooling/AspNetContextPooling.csproj index 865cc11df1..4e009acfd1 100644 --- a/samples/core/Performance/AspNetContextPooling/AspNetContextPooling.csproj +++ b/samples/core/Performance/AspNetContextPooling/AspNetContextPooling.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/samples/core/Performance/AspNetContextPoolingWithState/AspNetContextPoolingWithState.csproj b/samples/core/Performance/AspNetContextPoolingWithState/AspNetContextPoolingWithState.csproj index 77e8206573..8f7baea05d 100644 --- a/samples/core/Performance/AspNetContextPoolingWithState/AspNetContextPoolingWithState.csproj +++ b/samples/core/Performance/AspNetContextPoolingWithState/AspNetContextPoolingWithState.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/samples/core/Performance/Other/Other.csproj b/samples/core/Performance/Other/Other.csproj index d854ceb33c..8797c81c13 100644 --- a/samples/core/Performance/Other/Other.csproj +++ b/samples/core/Performance/Other/Other.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/ClientEvaluation/ClientEvaluation.csproj b/samples/core/Querying/ClientEvaluation/ClientEvaluation.csproj index 23a6306c24..291af59e38 100644 --- a/samples/core/Querying/ClientEvaluation/ClientEvaluation.csproj +++ b/samples/core/Querying/ClientEvaluation/ClientEvaluation.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/ComplexQuery/ComplexQuery.csproj b/samples/core/Querying/ComplexQuery/ComplexQuery.csproj index 32cdb725bf..eca69c5e29 100644 --- a/samples/core/Querying/ComplexQuery/ComplexQuery.csproj +++ b/samples/core/Querying/ComplexQuery/ComplexQuery.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/NullSemantics/NullSemantics.csproj b/samples/core/Querying/NullSemantics/NullSemantics.csproj index cde0db78e1..6fecdc2651 100644 --- a/samples/core/Querying/NullSemantics/NullSemantics.csproj +++ b/samples/core/Querying/NullSemantics/NullSemantics.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/Querying/Overview/Overview.csproj b/samples/core/Querying/Overview/Overview.csproj index 06b76e6ce7..68b2104bab 100644 --- a/samples/core/Querying/Overview/Overview.csproj +++ b/samples/core/Querying/Overview/Overview.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/Pagination/Pagination.csproj b/samples/core/Querying/Pagination/Pagination.csproj index a3006f948b..7d3e6d9ae8 100644 --- a/samples/core/Querying/Pagination/Pagination.csproj +++ b/samples/core/Querying/Pagination/Pagination.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/QueryFilters/QueryFilters.csproj b/samples/core/Querying/QueryFilters/QueryFilters.csproj index b1b64042d6..3ecaee1efc 100644 --- a/samples/core/Querying/QueryFilters/QueryFilters.csproj +++ b/samples/core/Querying/QueryFilters/QueryFilters.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/RelatedData/RelatedData.csproj b/samples/core/Querying/RelatedData/RelatedData.csproj index dbd1b22ffb..2ec3a23f05 100644 --- a/samples/core/Querying/RelatedData/RelatedData.csproj +++ b/samples/core/Querying/RelatedData/RelatedData.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/SqlQueries/SqlQueries.csproj b/samples/core/Querying/SqlQueries/SqlQueries.csproj index 1229b0a904..e5c6bf12ba 100644 --- a/samples/core/Querying/SqlQueries/SqlQueries.csproj +++ b/samples/core/Querying/SqlQueries/SqlQueries.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/Tags/Tags.csproj b/samples/core/Querying/Tags/Tags.csproj index 1d140fc281..355b9a196b 100644 --- a/samples/core/Querying/Tags/Tags.csproj +++ b/samples/core/Querying/Tags/Tags.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Querying/Tracking/Tracking.csproj b/samples/core/Querying/Tracking/Tracking.csproj index 22b663e6c8..e8750f470a 100644 --- a/samples/core/Querying/Tracking/Tracking.csproj +++ b/samples/core/Querying/Tracking/Tracking.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Querying/UserDefinedFunctionMapping/UserDefinedFunctionMapping.csproj b/samples/core/Querying/UserDefinedFunctionMapping/UserDefinedFunctionMapping.csproj index b002bf3cdf..d5509da45a 100644 --- a/samples/core/Querying/UserDefinedFunctionMapping/UserDefinedFunctionMapping.csproj +++ b/samples/core/Querying/UserDefinedFunctionMapping/UserDefinedFunctionMapping.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/core/Saving/Saving.csproj b/samples/core/Saving/Saving.csproj index 4aa4ad285a..a35a2ce347 100644 --- a/samples/core/Saving/Saving.csproj +++ b/samples/core/Saving/Saving.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Schemas/Migrations/CustomOperation.cs b/samples/core/Schemas/Migrations/CustomOperation.cs index 295015da44..4e5a6b4517 100644 --- a/samples/core/Schemas/Migrations/CustomOperation.cs +++ b/samples/core/Schemas/Migrations/CustomOperation.cs @@ -3,6 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations.Operations; using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders; +using Microsoft.EntityFrameworkCore.Update; #region snippet_CreateUserOperation public class CreateUserOperation : MigrationOperation @@ -33,8 +34,8 @@ public class MyMigrationsSqlGenerator : SqlServerMigrationsSqlGenerator { public MyMigrationsSqlGenerator( MigrationsSqlGeneratorDependencies dependencies, - IRelationalAnnotationProvider migrationsAnnotations) - : base(dependencies, migrationsAnnotations) + ICommandBatchPreparer commandBatchPreparer) + : base(dependencies, commandBatchPreparer) { } diff --git a/samples/core/Schemas/Migrations/Migrations.csproj b/samples/core/Schemas/Migrations/Migrations.csproj index 434296dec5..3f638bc1b5 100644 --- a/samples/core/Schemas/Migrations/Migrations.csproj +++ b/samples/core/Schemas/Migrations/Migrations.csproj @@ -5,7 +5,7 @@ - + diff --git a/samples/core/Schemas/ThreeProjectMigrations/WebApplication1.Data/WebApplication1.Data.csproj b/samples/core/Schemas/ThreeProjectMigrations/WebApplication1.Data/WebApplication1.Data.csproj index b6ec303c40..65a25816ca 100644 --- a/samples/core/Schemas/ThreeProjectMigrations/WebApplication1.Data/WebApplication1.Data.csproj +++ b/samples/core/Schemas/ThreeProjectMigrations/WebApplication1.Data/WebApplication1.Data.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/Schemas/ThreeProjectMigrations/WebApplication1/WebApplication1.csproj b/samples/core/Schemas/ThreeProjectMigrations/WebApplication1/WebApplication1.csproj index 148e69df49..74f901f576 100644 --- a/samples/core/Schemas/ThreeProjectMigrations/WebApplication1/WebApplication1.csproj +++ b/samples/core/Schemas/ThreeProjectMigrations/WebApplication1/WebApplication1.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/core/Schemas/TwoProjectMigrations/WorkerService1/WorkerService1.csproj b/samples/core/Schemas/TwoProjectMigrations/WorkerService1/WorkerService1.csproj index b0dab9945f..ee8a735ac1 100644 --- a/samples/core/Schemas/TwoProjectMigrations/WorkerService1/WorkerService1.csproj +++ b/samples/core/Schemas/TwoProjectMigrations/WorkerService1/WorkerService1.csproj @@ -6,9 +6,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/samples/core/Spatial/Projections/Projections.csproj b/samples/core/Spatial/Projections/Projections.csproj index f03a29ec43..8004e3e8b1 100644 --- a/samples/core/Spatial/Projections/Projections.csproj +++ b/samples/core/Spatial/Projections/Projections.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/Spatial/SqlServer/SqlServer.csproj b/samples/core/Spatial/SqlServer/SqlServer.csproj index 5202f5e4d2..3114507043 100644 --- a/samples/core/Spatial/SqlServer/SqlServer.csproj +++ b/samples/core/Spatial/SqlServer/SqlServer.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/SqlServer/SqlServer.csproj b/samples/core/SqlServer/SqlServer.csproj index 0d07ed26f1..6fecdc2651 100644 --- a/samples/core/SqlServer/SqlServer.csproj +++ b/samples/core/SqlServer/SqlServer.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/core/Testing/BusinessLogic/BusinessLogic.csproj b/samples/core/Testing/BusinessLogic/BusinessLogic.csproj index 265b2ec94d..7a4a1095aa 100644 --- a/samples/core/Testing/BusinessLogic/BusinessLogic.csproj +++ b/samples/core/Testing/BusinessLogic/BusinessLogic.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/core/Testing/TestingWithTheDatabase/TestingWithTheDatabase.csproj b/samples/core/Testing/TestingWithTheDatabase/TestingWithTheDatabase.csproj index 412ba53fe2..96170fa2af 100644 --- a/samples/core/Testing/TestingWithTheDatabase/TestingWithTheDatabase.csproj +++ b/samples/core/Testing/TestingWithTheDatabase/TestingWithTheDatabase.csproj @@ -8,9 +8,9 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/samples/core/Testing/TestingWithoutTheDatabase/TestingWithoutTheDatabase.csproj b/samples/core/Testing/TestingWithoutTheDatabase/TestingWithoutTheDatabase.csproj index 5781d7eb46..0b2be7add2 100644 --- a/samples/core/Testing/TestingWithoutTheDatabase/TestingWithoutTheDatabase.csproj +++ b/samples/core/Testing/TestingWithoutTheDatabase/TestingWithoutTheDatabase.csproj @@ -8,13 +8,13 @@ - - + + - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all