Skip to content

Commit c9a30c7

Browse files
authored
Merge pull request #62 from Tynab/develop
Develop
2 parents c2b7b8e + fb8b3ac commit c9a30c7

File tree

60 files changed

+445
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+445
-953
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,19 @@ PM> NuGet\Install-Package Tynab.YANLib
88
```
99

1010
### EXTENSION
11-
- Numeric
12-
- Text
1311
- Bool
12+
- Bytes
1413
- DateTime
15-
- Nullable
16-
- Model
17-
- JSON
14+
- Enum
1815
- Enumerable
19-
- Random
16+
- JSON
17+
- Numeric
18+
- Text
19+
- Object
20+
- Nullable
2021
- Process
22+
- Random
2123
- Task
22-
- Bytes
23-
24-
### OTHER
25-
- Password
2624

2725
[See wiki for more details](https://github.com/Tynab/YANLib/wiki)
2826

console/YANLib.Benchmarks/Process/Common/ClassTypeBenchmark.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using YANLib.Benchmarks.Models;
1+
using BenchmarkDotNet.Attributes;
2+
using YANLib.Benchmarks.Models;
3+
using static System.Guid;
4+
using static System.Threading.Tasks.Parallel;
25

36
namespace YANLib.Benchmarks.Process.Common;
47

console/YANLib.Benchmarks/Process/Common/HttpBenchmark.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace YANLib.Benchmarks.Process.Common;
1+
using BenchmarkDotNet.Attributes;
2+
3+
namespace YANLib.Benchmarks.Process.Common;
24

35
public class HttpBenchmark
46
{

console/YANLib.Benchmarks/Process/Common/LoopBenchmark.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace YANLib.Benchmarks.Process.Common;
1+
using BenchmarkDotNet.Attributes;
2+
using static System.Runtime.InteropServices.CollectionsMarshal;
3+
4+
namespace YANLib.Benchmarks.Process.Common;
25

36
public class LoopBenchmark
47
{

console/YANLib.Benchmarks/Process/Library/JsonDeserializeBenchmark.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using YANLib.Benchmarks.Models;
1+
using BenchmarkDotNet.Attributes;
2+
using YANLib.Benchmarks.Models;
3+
using YANLib.Core;
4+
using static Newtonsoft.Json.JsonConvert;
5+
using static System.Guid;
6+
using static System.Threading.Tasks.Parallel;
27

38
namespace YANLib.Benchmarks.Process.Library;
49

console/YANLib.Benchmarks/Process/Library/JsonSerializeBenchmark.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using YANLib.Benchmarks.Models;
1+
using BenchmarkDotNet.Attributes;
2+
using YANLib.Benchmarks.Models;
3+
using YANLib.Core;
4+
using static Newtonsoft.Json.JsonConvert;
5+
using static System.Guid;
6+
using static System.Threading.Tasks.Parallel;
27

38
namespace YANLib.Benchmarks.Process.Library;
49

console/YANLib.Benchmarks/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@
3535
}
3636
#endif
3737

38+
#if DEBUG
39+
using static System.Console;
40+
3841
_ = ReadLine();
42+
#endif

host/YANLib.HttpApi.Host/Controllers/HomeController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace YANLib.Controllers;
1+
using Microsoft.AspNetCore.Mvc;
2+
using Volo.Abp.AspNetCore.Mvc;
3+
4+
namespace YANLib.Controllers;
25

36
public class HomeController : AbpController
47
{

host/YANLib.HttpApi.Host/EntityFrameworkCore/YANLibHttpApiHostMigrationsDbContext.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace YANLib.EntityFrameworkCore;
1+
using Microsoft.EntityFrameworkCore;
2+
using Volo.Abp.EntityFrameworkCore;
3+
4+
namespace YANLib.EntityFrameworkCore;
25

36
public class YANLibHttpApiHostMigrationsDbContext(DbContextOptions<YANLibHttpApiHostMigrationsDbContext> options) : AbpDbContext<YANLibHttpApiHostMigrationsDbContext>(options)
47
{

host/YANLib.HttpApi.Host/EntityFrameworkCore/YANLibHttpApiHostMigrationsDbContextFactory.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
namespace YANLib.EntityFrameworkCore;
1+
using Microsoft.EntityFrameworkCore;
2+
using Microsoft.EntityFrameworkCore.Design;
3+
using Microsoft.Extensions.Configuration;
4+
using static System.IO.Directory;
5+
6+
namespace YANLib.EntityFrameworkCore;
27

38
public class YANLibHttpApiHostMigrationsDbContextFactory : IDesignTimeDbContextFactory<YANLibHttpApiHostMigrationsDbContext>
49
{

0 commit comments

Comments
 (0)