使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
17
RIZO_Application.Repository/IRepository.cs
Normal file
17
RIZO_Application.Repository/IRepository.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RIZO_Application.Repository
|
||||
{
|
||||
public interface IRepository<T> where T : class, new()
|
||||
{
|
||||
Task<T> GetByIdAsync(object id);
|
||||
Task<List<T>> GetAllAsync();
|
||||
Task<bool> InsertAsync(T entity);
|
||||
Task<bool> UpdateAsync(T entity);
|
||||
Task<bool> DeleteAsync(T entity);
|
||||
Task<bool> DeleteByIdAsync(object id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user