-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
125 changed files
with
9,836 additions
and
7,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
samples/Thinktecture.Runtime.Extensions.AspNetCore.Samples/DateOnlyConverter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
namespace Thinktecture.Benchmarks; | ||
|
||
[MemoryDiagnoser] | ||
public class ItemSearch | ||
{ | ||
public class SmartEnum | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/DescriptionStruct.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Thinktecture.Database; | ||
|
||
[ValueObject] | ||
public readonly partial struct DescriptionStruct | ||
{ | ||
private readonly string _value; | ||
|
||
static partial void ValidateFactoryArguments(ref ValidationResult? validationResult, ref string value) | ||
{ | ||
if (String.IsNullOrWhiteSpace(value)) | ||
{ | ||
value = null!; | ||
validationResult = new ValidationResult("Description cannot be empty."); | ||
return; | ||
} | ||
|
||
value = value.Trim(); | ||
|
||
if (value.Length < 2) | ||
validationResult = new ValidationResult("Description cannot be less than 2 characters."); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...s/Thinktecture.Runtime.Extensions.Benchmarking/Database/Entity_with_StructValueObjects.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Thinktecture.Database; | ||
|
||
// ReSharper disable InconsistentNaming | ||
public class Entity_with_StructValueObjects | ||
{ | ||
public int Id { get; set; } | ||
public NameStruct Name { get; set; } | ||
public DescriptionStruct Description { get; set; } | ||
|
||
// ReSharper disable once UnusedMember.Local | ||
private Entity_with_StructValueObjects(int id, NameStruct name, DescriptionStruct description) | ||
{ | ||
Id = id; | ||
Name = name; | ||
Description = description; | ||
} | ||
|
||
public Entity_with_StructValueObjects(int index) | ||
{ | ||
Id = index; | ||
Name = NameStruct.Create($"Name {index}"); | ||
Description = DescriptionStruct.Create($"Description {index}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/NameStruct.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Thinktecture.Database; | ||
|
||
[ValueObject] | ||
public readonly partial struct NameStruct | ||
{ | ||
private readonly string _value; | ||
|
||
static partial void ValidateFactoryArguments(ref ValidationResult? validationResult, ref string value) | ||
{ | ||
if (String.IsNullOrWhiteSpace(value)) | ||
{ | ||
value = null!; | ||
validationResult = new ValidationResult("Name cannot be empty."); | ||
return; | ||
} | ||
|
||
value = value.Trim(); | ||
|
||
if (value.Length < 2) | ||
validationResult = new ValidationResult("Name cannot be less than 2 characters."); | ||
} | ||
} |
Oops, something went wrong.