DD.WellWorkover.Cloud/AsbCloudApp/Services/ICrudService.cs
2021-08-02 14:45:13 +05:00

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);
}
}