-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Ali-YousefiTelori/develop
Add support for LogicOptions for UniqueIdentity Strategy
- Loading branch information
Showing
15 changed files
with
216 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
<Platforms>AnyCPU;x64;x86</Platforms> | ||
<Authors>EasyMicroservices</Authors> | ||
<Version>0.0.0.93</Version> | ||
<Version>0.0.0.94</Version> | ||
<Description>asp core servces.</Description> | ||
<Copyright>[email protected]</Copyright> | ||
<PackageTags>core,cores,base,database,services,asp,aspnet</PackageTags> | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
<Platforms>AnyCPU;x64;x86</Platforms> | ||
<Authors>EasyMicroservices</Authors> | ||
<Version>0.0.0.93</Version> | ||
<Version>0.0.0.94</Version> | ||
<Description>asp core servces.</Description> | ||
<Copyright>[email protected]</Copyright> | ||
<PackageTags>core,cores,base,database,services,asp,aspnet,aspcore,efcore</PackageTags> | ||
|
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
150 changes: 83 additions & 67 deletions
150
src/CSharp/EasyMicroservices.Cores.AspEntityFrameworkCoreApi/UnitOfWork.cs
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks> | ||
<Platforms>AnyCPU;x64;x86</Platforms> | ||
<Authors>EasyMicroservices</Authors> | ||
<Version>0.0.0.93</Version> | ||
<Version>0.0.0.94</Version> | ||
<Description>core of database.</Description> | ||
<Copyright>[email protected]</Copyright> | ||
<PackageTags>core,cores,base,client,clients</PackageTags> | ||
|
47 changes: 47 additions & 0 deletions
47
src/CSharp/EasyMicroservices.Cores.Contracts/DataTypes/UniqueIdentityStrategy.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,47 @@ | ||
namespace EasyMicroservices.Cores.DataTypes; | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public enum UniqueIdentityStrategy : byte | ||
{ | ||
/// <summary> | ||
/// value is none, Never use the None to return values | ||
/// </summary> | ||
None = 0, | ||
/// <summary> | ||
/// error value is default | ||
/// </summary> | ||
Default = 1, | ||
/// <summary> | ||
/// for the filter values from web admin panel you can sent all for types | ||
/// </summary> | ||
All = 2, | ||
/// <summary> | ||
/// there is other error that is not in the types | ||
/// </summary> | ||
Other = 3, | ||
/// <summary> | ||
/// the error type is uknown to us | ||
/// </summary> | ||
Unknown = 4, | ||
/// <summary> | ||
/// there is nothing to show or validate error | ||
/// </summary> | ||
Nothing = 5, | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
Full = 6, | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
BusinessTwoSegment = 7, | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
UserFourSegment = 8, | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
ObjectSixSegment = 9 | ||
} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6.0;net8.0</TargetFrameworks> | ||
<Platforms>AnyCPU;x64;x86</Platforms> | ||
<Authors>EasyMicroservices</Authors> | ||
<Version>0.0.0.93</Version> | ||
<Version>0.0.0.94</Version> | ||
<Description>core contracts.</Description> | ||
<Copyright>[email protected]</Copyright> | ||
<PackageTags>core,cores,base,contract,contracts,dto,dtos</PackageTags> | ||
|
33 changes: 33 additions & 0 deletions
33
src/CSharp/EasyMicroservices.Cores.Contracts/Models/LogicOptions.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,33 @@ | ||
using EasyMicroservices.Cores.DataTypes; | ||
using System; | ||
|
||
namespace EasyMicroservices.Cores.Models; | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public struct LogicOptions | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public LogicOptions() | ||
{ | ||
|
||
} | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public UniqueIdentityStrategy UniqueIdentityStrategy { get; set; } = UniqueIdentityStrategy.Default; | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="uniqueIdentityStrategy"></param> | ||
|
||
public static implicit operator LogicOptions(UniqueIdentityStrategy uniqueIdentityStrategy) | ||
{ | ||
return new LogicOptions() | ||
{ | ||
UniqueIdentityStrategy = uniqueIdentityStrategy | ||
}; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6.0;net8.0</TargetFrameworks> | ||
<Platforms>AnyCPU;x64;x86</Platforms> | ||
<Authors>EasyMicroservices</Authors> | ||
<Version>0.0.0.93</Version> | ||
<Version>0.0.0.94</Version> | ||
<Description>core of database.</Description> | ||
<Copyright>[email protected]</Copyright> | ||
<PackageTags>core,cores,base,database</PackageTags> | ||
|
Oops, something went wrong.