You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
457 B
C#
17 lines
457 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Estsh.Core.Repositories
|
|
{
|
|
public interface IBaseRepository<T>
|
|
{
|
|
public int Insert(T entity, string sql);
|
|
Task<int> InsertAsync(T entity, string sql);
|
|
Task<int> UpdateAsync(T entity, string sql);
|
|
Task<int> DeleteAsync(int id,string sql);
|
|
Task<T> GetAsync(int id,string sql);
|
|
Task<List<T>> GetListAsync(string sql);
|
|
|
|
}
|
|
}
|