Skip to content

Commit

Permalink
use latest daily
Browse files Browse the repository at this point in the history
ErikEJ committed Oct 16, 2023
1 parent 490054e commit a019b07
Showing 3 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions test/Ef7Playground/Ef7Playground/Ef7Playground.csproj
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@

<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0-preview.7.23375.4">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0-rc.2.23480.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-preview.7.23375.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite" Version="8.0.0-preview.7.23375.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.HierarchyId" Version="8.0.0-preview.7.23375.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-rc.2.23480.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite" Version="8.0.0-rc.2.23480.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.HierarchyId" Version="8.0.0-rc.2.23480.1" />
</ItemGroup>

<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
14 changes: 7 additions & 7 deletions test/Ef7Playground/Ef7Playground/Models/NorthwindContext.cs
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ public NorthwindContext(DbContextOptions<NorthwindContext> options)

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
=> optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;Trust Server Certificate=True;Command Timeout=300", x => x
=> optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;Encrypt=False;Trust Server Certificate=True;Command Timeout=300", x => x
.UseNetTopologySuite()
.UseHierarchyId());

@@ -342,7 +342,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasColumnName("CustomerID");
entity.Property(e => e.EmployeeId).HasColumnName("EmployeeID");
entity.Property(e => e.Freight)
.HasDefaultValueSql("((0))")
.HasDefaultValue(0m)
.HasColumnType("money");
entity.Property(e => e.OrderDate).HasColumnType("datetime");
entity.Property(e => e.RequiredDate).HasColumnType("datetime");
@@ -383,7 +383,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)

entity.Property(e => e.OrderId).HasColumnName("OrderID");
entity.Property(e => e.ProductId).HasColumnName("ProductID");
entity.Property(e => e.Quantity).HasDefaultValueSql("((1))");
entity.Property(e => e.Quantity).HasDefaultValue((short)1);
entity.Property(e => e.UnitPrice).HasColumnType("money");

entity.HasOne(d => d.Order).WithMany(p => p.OrderDetails)
@@ -486,13 +486,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
entity.Property(e => e.CategoryId).HasColumnName("CategoryID");
entity.Property(e => e.ProductName).HasMaxLength(40);
entity.Property(e => e.QuantityPerUnit).HasMaxLength(20);
entity.Property(e => e.ReorderLevel).HasDefaultValueSql("((0))");
entity.Property(e => e.ReorderLevel).HasDefaultValue((short)0);
entity.Property(e => e.SupplierId).HasColumnName("SupplierID");
entity.Property(e => e.UnitPrice)
.HasDefaultValueSql("((0))")
.HasDefaultValue(0m)
.HasColumnType("money");
entity.Property(e => e.UnitsInStock).HasDefaultValueSql("((0))");
entity.Property(e => e.UnitsOnOrder).HasDefaultValueSql("((0))");
entity.Property(e => e.UnitsInStock).HasDefaultValue((short)0);
entity.Property(e => e.UnitsOnOrder).HasDefaultValue((short)0);

entity.HasOne(d => d.Category).WithMany(p => p.Products)
.HasForeignKey(d => d.CategoryId)
3 changes: 2 additions & 1 deletion test/Ef7Playground/Ef7Playground/efpt.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"CodeGenerationMode": 3,
"CodeGenerationMode": 4,
"ContextClassName": "NorthwindContext",
"ContextNamespace": null,
"DefaultDacpacSchema": null,
@@ -216,6 +216,7 @@
"UseLegacyPluralizer": false,
"UseManyToManyEntity": false,
"UseNoDefaultConstructor": false,
"UseNoNavigations": false,
"UseNoObjectFilter": false,
"UseNodaTime": false,
"UseNullableReferences": true,

0 comments on commit a019b07

Please sign in to comment.