Improvements, refactoring, fixes, etc...

This commit is contained in:
Loretta 2024-11-13 10:57:58 +01:00
parent f4549f11b1
commit bf21342abb
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,8 @@
using AyCode.Interfaces.Entities;
using Nop.Core;
namespace Mango.Nop.Core.Entities;
public class EntityBase : BaseEntity, IEntityInt
{
}

View File

@ -0,0 +1,10 @@
using AyCode.Interfaces.Entities;
using Nop.Core.Domain.Common;
namespace Mango.Nop.Core.Interfaces;
// ReSharper disable once PossibleInterfaceMemberAmbiguity
public interface ISoftRemoveEntity : IAcSoftRemoveEntity, ISoftDeletedEntity
{
}

View File

@ -0,0 +1,9 @@
using AyCode.Interfaces.Entities;
namespace Mango.Nop.Core.Interfaces;
// ReSharper disable once PossibleInterfaceMemberAmbiguity
public interface ISoftRemoveEntityInt : IAcSoftRemoveEntityInt, ISoftRemoveEntity
{
}

View File

@ -11,6 +11,11 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\NopCommerce\Libraries\Nop.Core\Nop.Core.csproj" />
<ProjectReference Include="..\..\..\..\NopCommerce\Libraries\Nop.Data\Nop.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="AyCode.Core">
<HintPath>..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll</HintPath>

View File

@ -0,0 +1,15 @@
using System.Linq.Expressions;
using Nop.Core;
using Nop.Core.Caching;
using Nop.Core.Configuration;
using Nop.Core.Events;
using Nop.Data;
namespace Mango.Nop.Core.Repositories;
public class DalBase<TEntity> : EntityRepository<TEntity> where TEntity : BaseEntity
{
public DalBase(IEventPublisher eventPublisher, INopDataProvider dataProvider, IShortTermCacheManager shortTermCacheManager, IStaticCacheManager staticCacheManager, AppSettings appSettings) : base(eventPublisher, dataProvider, shortTermCacheManager, staticCacheManager, appSettings)
{
}
}