Material Update Strategy was added
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
/// Unique identifier
|
||||
/// </summary>
|
||||
Guid Id { get;}
|
||||
void Save();
|
||||
//void Save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user