Material Update Strategy was added

This commit is contained in:
Evgeny Redikultsev
2023-07-02 22:03:30 +05:00
parent 2595d7e733
commit 03b882f54d
74 changed files with 456 additions and 184 deletions

View File

@@ -8,8 +8,10 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
{
public interface IDataRepository<T>
{
void Save(T entity);
T Load(Guid Id);
void Create(T entity);
void Update(T entity);
void Delete(Guid Id);
T GetById(Guid Id);
List<T> GetAll();
}
}

View File

@@ -8,6 +8,6 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
/// Unique identifier
/// </summary>
Guid Id { get;}
void Save();
//void Save();
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Infrastructures.Interfaces
{
public interface IUpdateStrategy<T>
{
void Update(T targetObject, T sourceObject);
}
}