Skip to content

Commit

Permalink
rename entities to schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Sep 3, 2023
1 parent d1d8846 commit 6083174
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 13 deletions.
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 @@ -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
@@ -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

0 comments on commit 6083174

Please sign in to comment.