Skip to content

Commit

Permalink
Update EF to v8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wyżgoł committed Jan 14, 2024
1 parent 87933e5 commit 576e939
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net48;netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<AssemblyName>FirebirdSql.Data.FirebirdClient</AssemblyName>
<RootNamespace>FirebirdSql.Data</RootNamespace>
<SignAssembly>true</SignAssembly>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<None Include="..\..\firebird-logo.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FirebirdSql.Data.FirebirdClient\FirebirdSql.Data.FirebirdClient.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ protected override void Generate(RestartSequenceOperation operation, IModel mode
builder.Append("ALTER SEQUENCE ");
builder.Append(Dependencies.SqlGenerationHelper.DelimitIdentifier(operation.Name, operation.Schema));
builder.Append(" START WITH ");
builder.Append(operation.StartValue.ToString(CultureInfo.InvariantCulture));
builder.Append(operation.StartValue?.ToString(CultureInfo.InvariantCulture));
TerminateStatement(builder);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public FbValueGeneratorSelector(ValueGeneratorSelectorDependencies dependencies,

public new virtual IFbValueGeneratorCache Cache => (IFbValueGeneratorCache)base.Cache;

public override ValueGenerator Select(IProperty property, IEntityType entityType)
public override ValueGenerator Select(IProperty property, ITypeBase entityType)
{
if (property.GetValueGeneratorFactory() != null
|| property.GetValueGenerationStrategy() != FbValueGenerationStrategy.HiLo)
Expand Down Expand Up @@ -90,7 +90,7 @@ public override ValueGenerator Select(IProperty property, IEntityType entityType
nameof(FbSequenceValueGeneratorFactory), property.Name, property.DeclaringEntityType.DisplayName()));
}

protected override ValueGenerator FindForType(IProperty property, IEntityType entityType, Type clrType)
protected override ValueGenerator FindForType(IProperty property, ITypeBase entityType, Type clrType)
=> property.ClrType.UnwrapNullableType() == typeof(Guid)
? property.ValueGenerated == ValueGenerated.Never || property.GetDefaultValueSql() != null
? new TemporaryGuidValueGenerator()
Expand Down

0 comments on commit 576e939

Please sign in to comment.