Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename entities to schemas #36

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
dotnet-version: |
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Run dotnet format
id: format
uses: jfversluis/[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
dotnet-version: |
6.0.x
7.0.x
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Cores.sln
- name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
dotnet-version: |
6.0.x
7.0.x
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Cores.sln
- name: Build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
dotnet-version: |
6.0.x
7.0.x
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Cores.sln
- name: Build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
7.0.x
env:
DOTNET_INSTALL_DIR: /usr/share/dotnet
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Cores.sln
- name: Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.23</Version>
<Version>0.0.0.24</Version>
<Description>asp core servces.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,services,asp,aspnet</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.4</Version>
<Version>0.0.0.5</Version>
<Description>asp core servces.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,services,asp,aspnet,aspcore,efcore</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using EasyMicroservices.Cores.Interfaces;
using System;

namespace EasyMicroservices.Cores.Database.Entities
namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
public class DateTimeEntity : IDateTimeSchema
public class DateTimeSchema : IDateTimeSchema
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using EasyMicroservices.Cores.Interfaces;

namespace EasyMicroservices.Cores.Database.Entities
namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
/// <typeparam name="TId"></typeparam>
public class FullAbilityIdEntity<TId> : FullAbilityEntity, IIdSchema<TId>
public class FullAbilityIdSchema<TId> : FullAbilitySchema, IIdSchema<TId>
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Collections.Generic;
using System.Text;

namespace EasyMicroservices.Cores.Database.Entities
namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
public class FullAbilityEntity : IUniqueIdentitySchema, ISoftDeleteSchema, IDateTimeSchema
public class FullAbilitySchema : IUniqueIdentitySchema, ISoftDeleteSchema, IDateTimeSchema
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using EasyMicroservices.Cores.Interfaces;

namespace EasyMicroservices.Cores.Database.Entities
namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
public class LongIdEntity : IIdSchema<long>
public class IdSchema<TId> : IIdSchema<TId>
{
/// <summary>
///
/// </summary>
public long Id { get; set; }
public TId Id { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using EasyMicroservices.Cores.Interfaces;

namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
public class LongIdSchema : IdSchema<long>
{

}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using EasyMicroservices.Cores.Interfaces;
using System;

namespace EasyMicroservices.Cores.Database.Entities
namespace EasyMicroservices.Cores.Database.Schemas
{
/// <summary>
///
/// </summary>
public class SoftDeleteEntity : ISoftDeleteSchema
public class SoftDeleteSchema : ISoftDeleteSchema
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.25</Version>
<Version>0.0.0.26</Version>
<Description>core of database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database</PackageTags>
Expand All @@ -24,6 +24,7 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Database\Entities\" />
<Folder Include="Database\ReadableLogics\" />
<Folder Include="Database\WritableLogics\" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.16</Version>
<Version>0.0.0.17</Version>
<Description>ef core of database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,ef,efcore</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.13</Version>
<Version>0.0.0.14</Version>
<Description>ef core of Relational database.</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>core,cores,base,database,ef,efcore,Relational</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using EasyMicroservices.Cores.Database.Entities;
using EasyMicroservices.Cores.Database.Schemas;

namespace EasyMicroservices.Cores.Tests.DatabaseLogics.Database.Entities
{
public class ProfileEntity : FullAbilityIdEntity<long>
public class ProfileEntity : FullAbilityIdSchema<long>
{
public string FirstName { get; set; }
public string LastName { get; set; }
Expand Down
Loading