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

Switched LangVersion from preview to 13.0 #8014

Merged
merged 1 commit into from
Feb 12, 2025
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 src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<LangVersion>preview</LangVersion>
<LangVersion>13.0</LangVersion>
<Version Condition="$(Version) == ''">0.0.0</Version>
<NoWarn>$(NoWarn);CS0436;RS0026;RS0027;RS0041;AD0001;CS1591;NU5104;NU5128;NU5501</NoWarn>
<WarningsAsErrors>$(WarningsAsErrors);nullable</WarningsAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion src/GreenDonut/src/GreenDonut.Data.Primitives/SortBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public SortBy(Expression<Func<TEntity, TValue>> keySelector, bool ascending = tr
/// <summary>
/// Gets the sort direction.
/// </summary>
public bool Ascending { get => field; init; }
public bool Ascending { get; init; }

/// <summary>
/// Applies the sort operation to the queryable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace HotChocolate.CostAnalysis;
/// </summary>
public record RequestCostOptions
{
private bool _enforceCostLimits;
private bool _skipAnalyzer;

/// <summary>
/// Request options for cost analysis.
/// </summary>
Expand Down Expand Up @@ -79,15 +82,15 @@ public RequestCostOptions(
/// </summary>
public bool EnforceCostLimits
{
get;
get => _enforceCostLimits;
init
{
if (value)
{
SkipAnalyzer = false;
}

field = value;
_enforceCostLimits = value;
}
}

Expand All @@ -96,15 +99,15 @@ public bool EnforceCostLimits
/// </summary>
public bool SkipAnalyzer
{
get;
get => _skipAnalyzer;
init
{
if (value)
{
EnforceCostLimits = false;
}

field = value;
_skipAnalyzer = value;
}
}

Expand Down
Loading