Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8347eff

Browse files
Core layed refactored
1 parent 6dde5bf commit 8347eff

File tree

12 files changed

+13
-29
lines changed

12 files changed

+13
-29
lines changed

‎src/AspnetRun.Core/AspnetRunSettings.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/AspnetRun.Core/Interfaces/IAppLogger.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace AspnetRun.Core.Interfaces
1+
namespace AspnetRun.Core.Interfaces
62
{
73
public interface IAppLogger<T>
84
{

‎src/AspnetRun.Core/Repositories/Base/IRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using AspnetRun.Core.Entities.Base;
2-
using AspnetRun.Core.Interfaces;
2+
using AspnetRun.Core.Specifications.Base;
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;

‎src/AspnetRun.Core/Repositories/ICategoryRepository.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ namespace AspnetRun.Core.Repositories
77
public interface ICategoryRepository : IRepository<Category>
88
{
99
Task<Category> GetCategoryWithProductsAsync(int categoryId);
10-
1110
}
1211
}

‎src/AspnetRun.Core/Specifications/BaseSpecification.cs renamed to ‎src/AspnetRun.Core/Specifications/Base/BaseSpecification.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using AspnetRun.Core.Interfaces;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using System.Linq.Expressions;
54

6-
namespace AspnetRun.Core.Specifications
5+
namespace AspnetRun.Core.Specifications.Base
76
{
87
// Specification Pattern from : https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/microservice-ddd-cqrs-patterns/infrastructure-persistence-layer-implemenation-entity-framework-core
98
public abstract class BaseSpecification<T> : ISpecification<T>

‎src/AspnetRun.Core/Interfaces/ISpecification.cs renamed to ‎src/AspnetRun.Core/Specifications/Base/ISpecification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq.Expressions;
44

5-
namespace AspnetRun.Core.Interfaces
5+
namespace AspnetRun.Core.Specifications.Base
66
{
77
public interface ISpecification<T>
88
{

‎src/AspnetRun.Core/Specifications/CategoryWithproductsSpecification.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using AspnetRun.Core.Entities;
2+
using AspnetRun.Core.Specifications.Base;
23
using System;
34
using System.Collections.Generic;
45
using System.Text;

‎src/AspnetRun.Core/Specifications/ProductWithCategorySpecification.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using AspnetRun.Core.Entities;
2+
using AspnetRun.Core.Specifications.Base;
23

34
namespace AspnetRun.Core.Specifications
45
{

‎src/AspnetRun.Core/ValueObjects/ValueObject.cs renamed to ‎src/AspnetRun.Core/ValueObjects/Base/ValueObject.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.Linq;
4-
using System.Text;
53

6-
namespace AspnetRun.Core.ValueObjects
4+
namespace AspnetRun.Core.ValueObjects.Base
75
{
86
// Source: https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/microservice-ddd-cqrs-patterns/implement-value-objects
97
public abstract class ValueObject
@@ -20,7 +18,7 @@ protected static bool EqualOperator(ValueObject left, ValueObject right)
2018

2119
protected static bool NotEqualOperator(ValueObject left, ValueObject right)
2220
{
23-
return !(EqualOperator(left, right));
21+
return !EqualOperator(left, right);
2422
}
2523

2624
protected abstract IEnumerable<object> GetAtomicValues();

‎src/AspnetRun.Infrastructure/Repository/AspnetRunRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using AspnetRun.Core.Entities.Base;
2-
using AspnetRun.Core.Interfaces;
32
using AspnetRun.Core.Repositories.Base;
3+
using AspnetRun.Core.Specifications.Base;
44
using AspnetRun.Infrastructure.Data;
55
using Microsoft.EntityFrameworkCore;
66
using System;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /