Materials were refactored
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
public interface IDataRepository<T>
|
||||
{
|
||||
void Save(T entity);
|
||||
T Load(Guid Id);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,13 @@
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
using System;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
public interface ISaveable
|
||||
{
|
||||
int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Unique identifier
|
||||
/// </summary>
|
||||
Guid Id { get;}
|
||||
void Save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user