Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency StronglyTypedId to v1.0.0-beta07 #1710

Merged
merged 3 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<PackageVersion Include="NodaTime.Serialization.SystemTextJson" Version="1.1.2" />
<PackageVersion Include="NodaTime.Testing" Version="3.1.10" />
<PackageVersion Include="Polly" Version="8.2.0" />
<PackageVersion Include="StronglyTypedId" Version="1.0.0-beta06" />
<PackageVersion Include="StronglyTypedId" Version="1.0.0-beta07" />
<PackageVersion Include="Rocket.Surgery.Build.Information" Version="3.3.11" />
<PackageVersion Include="Rocket.Surgery.Conventions" Version="12.9.3" />
<PackageVersion Include="Rocket.Surgery.Conventions.Abstractions" Version="12.9.3" />
Expand Down
11 changes: 7 additions & 4 deletions sample/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Packages.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Packages.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="StronglyTypedId.Templates" Version="1.0.0-beta07" />
</ItemGroup>
</Project>
11 changes: 3 additions & 8 deletions sample/Sample.Core/Models/LaunchRecordModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ namespace Sample.Core.Models;
/// Unique Id of a launch record
/// </summary>
#pragma warning disable CA1036
[StronglyTypedId(
StronglyTypedIdBackingType.Guid,
StronglyTypedIdConverter.SystemTextJson | StronglyTypedIdConverter.EfCoreValueConverter | StronglyTypedIdConverter.TypeConverter
)]
public partial struct LaunchRecordId
{
}
[StronglyTypedId(Template.Guid, "guid-efcore")]
public partial struct LaunchRecordId { }
#pragma warning restore CA1036

/// <summary>
Expand Down Expand Up @@ -73,4 +68,4 @@ public Mapper()
CreateMap<LaunchRecord, LaunchRecordModel>();
}
}
}
}
11 changes: 3 additions & 8 deletions sample/Sample.Core/Models/RocketModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ namespace Sample.Core.Models;
/// Unique Id of a rocket
/// </summary>
#pragma warning disable CA1036
[StronglyTypedId(
StronglyTypedIdBackingType.Guid,
StronglyTypedIdConverter.SystemTextJson | StronglyTypedIdConverter.EfCoreValueConverter | StronglyTypedIdConverter.TypeConverter
)]
public partial struct RocketId
{
}
[StronglyTypedId(Template.Guid, "guid-efcore")]
public partial struct RocketId { }
#pragma warning restore CA1036

/// <summary>
Expand Down Expand Up @@ -45,4 +40,4 @@ public Mapper()
.ForMember(z => z.Sn, x => x.MapFrom(z => z.SerialNumber));
}
}
}
}
1 change: 1 addition & 0 deletions sample/Sample.Core/Sample.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="StronglyTypedId" />
<PackageReference Include="StronglyTypedId.Templates" />

</ItemGroup>

Expand Down
Loading