-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
MaxRecursiveDepth
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,5 +101,5 @@ public class MapperAttribute : Attribute | |
/// <summary> | ||
/// Defines the maximum recursive depth that an IQueryable mapping will use. | ||
/// </summary> | ||
public int RecursiveDepth { get; set; } = 8; | ||
public int MaxRecursiveDepth { get; set; } = 8; | ||
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / sample
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / sample
Check failure on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / test
Check failure on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / test
Check failure on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / test
Check failure on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / test
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / package
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / package
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / SourceGeneratorBenchmarks
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / SourceGeneratorBenchmarks
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / MappingBenchmarks
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / MappingBenchmarks
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / build
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / build
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / build
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / build
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 104 in src/Riok.Mapperly.Abstractions/MapperAttribute.cs GitHub Actions / Analyze (csharp)
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Riok.Mapperly.Abstractions; | ||
|
||
/// <summary> | ||
/// Defines the maximum recursive depth that an IQueryable mapping will use. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public sealed class MapperMaxRecursiveDepthAttribute : Attribute | ||
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / sample
Check failure on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check failure on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / package
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / SourceGeneratorBenchmarks
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / MappingBenchmarks
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 7 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
|
||
{ | ||
/// <summary> | ||
/// Defines the maximum recursive depth that an IQueryable mapping will use. | ||
/// </summary> | ||
/// <param name="maxRecursiveDepth">The maximum recursive depth used when mapping IQueryable members.</param> | ||
public MapperMaxRecursiveDepthAttribute(int maxRecursiveDepth) | ||
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / sample
Check failure on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check failure on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / package
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / SourceGeneratorBenchmarks
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / MappingBenchmarks
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 13 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
|
||
{ | ||
MaxRecursiveDepth = maxRecursiveDepth; | ||
} | ||
|
||
/// <summary> | ||
/// The maximum recursive depth used when mapping IQueryable members. | ||
/// </summary> | ||
public int MaxRecursiveDepth { get; } | ||
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / sample
Check failure on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check failure on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / test
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / package
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / SourceGeneratorBenchmarks
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / MappingBenchmarks
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / build
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
Check warning on line 21 in src/Riok.Mapperly.Abstractions/MapperMaxRecursiveDepthAttribute.cs GitHub Actions / Analyze (csharp)
|
||
} |
This file was deleted.
This file was deleted.