forked from ddrilling/AsbCloudServer
17 lines
470 B
C#
17 lines
470 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface ICrudService<Tdto>
|
|
where Tdto : Data.IId
|
|
{
|
|
int Delete(int id);
|
|
Tdto Get(int id);
|
|
IEnumerable<Tdto> GetAll(Expression<Func<object, bool>> predicate = null);
|
|
Tdto Insert(Tdto newItem);
|
|
IEnumerable<Tdto> InsertRange(IEnumerable<Tdto> newItems);
|
|
Tdto Update(Tdto item);
|
|
}
|
|
} |