-
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.
feat : 修改nuget版本号,删除部分不必要的实现,推送到nuget的实现,自动注入和模块化拆为单独的类库
- Loading branch information
Showing
34 changed files
with
85 additions
and
129 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
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
2 changes: 1 addition & 1 deletion
2
src/framework/Luck.AutoDependencyInjection/Luck.AutoDependencyInjection.csproj
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "请输入NUGET_API_KEY" | ||
read NUGET_API_KEY | ||
rm bin/Release/*.nupkg | ||
dotnet build -c Release | ||
dotnet pack -c Release | ||
dotnet nuget push bin/Release/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json |
25 changes: 25 additions & 0 deletions
25
src/framework/Luck.DDD.Domain/Domain/AggregateRoots/AggregateRootBase.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 @@ | ||
| ||
namespace Luck.DDD.Domain.Domain.AggregateRoots | ||
{ | ||
public class AggregateRootBase : IAggregateRootBase | ||
{ | ||
private string? _aggregateRootType; | ||
|
||
|
||
private string AggregateRootName | ||
{ | ||
get | ||
{ | ||
var aggregateRootType = GetType(); | ||
_aggregateRootType = aggregateRootType.FullName; | ||
if (_aggregateRootType is null) | ||
{ | ||
throw new ArgumentNullException(nameof(_aggregateRootType)); | ||
} | ||
|
||
return _aggregateRootType; | ||
} | ||
} | ||
|
||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...gregateRoots/AggregateRootWithIdentity.cs → ...gregateRoots/AggregateRootWithIdentity.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
7 changes: 2 additions & 5 deletions
7
...omian/AggregateRoots/FullAggregateRoot.cs → ...omain/AggregateRoots/FullAggregateRoot.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
2 changes: 1 addition & 1 deletion
2
...mian/AggregateRoots/IAggregateRootBase.cs → ...main/AggregateRoots/IAggregateRootBase.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
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,11 @@ | ||
|
||
using Luck.DDD.Domain.Domain.Entities; | ||
|
||
namespace Luck.DDD.Domain.Domian.Entities | ||
{ | ||
public abstract class Entity : IEntityWithIdentity | ||
{ | ||
|
||
|
||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
...ain/Domian/Entities/EntityWithIdentity.cs → ...ain/Domain/Entities/EntityWithIdentity.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
5 changes: 2 additions & 3 deletions
5
....DDD.Domain/Domian/Entities/FullEntity.cs → ....DDD.Domain/Domain/Entities/FullEntity.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
2 changes: 1 addition & 1 deletion
2
...in/Domian/Entities/IEntityWithIdentity.cs → ...in/Domain/Entities/IEntityWithIdentity.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
53 changes: 0 additions & 53 deletions
53
src/framework/Luck.DDD.Domain/Domian/AggregateRoots/AggregateRootBase.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/framework/Luck.DDD.Domain/Domian/Events/IDomainEvents.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
1 change: 1 addition & 0 deletions
1
src/framework/Luck.DDD.Domain/Repositories/AggregateRootRepositoryBase.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
4 changes: 3 additions & 1 deletion
4
src/framework/Luck.DDD.Domain/Repositories/IAggregateRootRepository.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
4 changes: 3 additions & 1 deletion
4
src/framework/Luck.DDD.Domain/Repositories/IEntityRepository.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
2 changes: 2 additions & 0 deletions
2
src/framework/Luck.DDD.Domain/SqlRepositories/ISqlAggregateRootRepository.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
2 changes: 2 additions & 0 deletions
2
src/framework/Luck.DDD.Domain/SqlRepositories/ISqlEntityRepository.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
1 change: 1 addition & 0 deletions
1
src/framework/Luck.DDD.Domain/SqlRepositories/SqlAggregateRootRepositoryBase.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Data; | ||
using Luck.DDD.Domain.Domain.AggregateRoots; | ||
|
||
namespace Luck.DDD.Domain.SqlRepositories; | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/framework/Luck.Dapper/Repositories/DapperAggregateRootRepositoryBase.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
1 change: 1 addition & 0 deletions
1
src/framework/Luck.Dapper/Repositories/DapperEntityRepository.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
28 changes: 0 additions & 28 deletions
28
src/framework/Luck.EntityFrameworkCore/DbContexts/MediatorExtensions.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