26 lines
740 B
C#
26 lines
740 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Church.Net.DAL.Core
|
|
{
|
|
public interface IRepository<T>:IDisposable where T:class
|
|
{
|
|
void InitializeConnectionString(string connString);
|
|
void Add(T obj);
|
|
void Edit(T obj);
|
|
void Delete(T id);
|
|
void Attach(T obj);
|
|
T GetSingle();
|
|
T GetSingle(Expression<Func<T, bool>> whereCondition);
|
|
IList<T> GetAll();
|
|
IList<T> GetAll(Expression<Func<T, bool>> whereCondition);
|
|
IQueryable<T> GetQueryable();
|
|
IQueryable<T> GetQueryable(Expression<Func<T, bool>> whereCondition);
|
|
}
|
|
}
|