Skip to content

Commit 5e104a5

Browse files
committed
Fix build error
1 parent 97123ea commit 5e104a5

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using Initium.Domain.Entities;
2-
3-
namespace Initium.Infrastructure.Extensions;
4-
5-
internal static class BaseEntityExtensions
6-
{
7-
public static void Touch<TKey>(this BaseEntity<TKey> entity) => entity.UpdatedAt = DateTimeOffset.UtcNow;
8-
}
1+
// using Initium.Domain.Entities;
2+
//
3+
// namespace Initium.Infrastructure.Extensions;
4+
//
5+
// internal static class BaseEntityExtensions
6+
// {
7+
// public static void Touch<TKey>(this BaseEntity<TKey> entity) => entity.UpdatedAt = DateTimeOffset.UtcNow;
8+
// }

src/Initium/Services/ICrudService.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
namespace Initium.Services;
44

5-
public interface ICrudService<TEntity>
6-
{
7-
ServiceResult Create(TEntity entity);
8-
IEnumerable<TEntity> FindAll();
9-
IEnumerable<TEntity> FindById(Guid entityId);
10-
IEnumerable<TEntity> FindBy(Func<TEntity, bool> predicate);
11-
ServiceResult Update(Guid entityId, TEntity entity);
12-
ServiceResult Delete(Guid entityId);
13-
ServiceResult DeleteBy(Func<TEntity, bool> predicate);
14-
ServiceResult DeleteAll();
15-
16-
// BaseResult Create(TEntity entity);
17-
// BaseResult Create(TCreateRequest createRequest);
18-
// IQueryable<TEntity> Read();
19-
// TEntity? Read(TPrimaryKeyType entityId);
20-
// BaseResult Update(TPrimaryKeyType entityId, TEntity entity);
21-
// BaseResult Delete(TPrimaryKeyType entityId);
22-
// BaseResult Delete();
23-
}
5+
// public interface ICrudService<TEntity>
6+
// {
7+
// ServiceResult Create(TEntity entity);
8+
// IEnumerable<TEntity> FindAll();
9+
// IEnumerable<TEntity> FindById(Guid entityId);
10+
// IEnumerable<TEntity> FindBy(Func<TEntity, bool> predicate);
11+
// ServiceResult Update(Guid entityId, TEntity entity);
12+
// ServiceResult Delete(Guid entityId);
13+
// ServiceResult DeleteBy(Func<TEntity, bool> predicate);
14+
// ServiceResult DeleteAll();
15+
//
16+
// // BaseResult Create(TEntity entity);
17+
// // BaseResult Create(TCreateRequest createRequest);
18+
// // IQueryable<TEntity> Read();
19+
// // TEntity? Read(TPrimaryKeyType entityId);
20+
// // BaseResult Update(TPrimaryKeyType entityId, TEntity entity);
21+
// // BaseResult Delete(TPrimaryKeyType entityId);
22+
// // BaseResult Delete();
23+
// }

0 commit comments

Comments
 (0)