﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemX.DAL
{
    public interface IRepository<T,TId> where T : class
    {
        void DeleteOnSubmit(T entity);
        IQueryable<T> GetAll();
        T GetById(TId id);
        void SaveOrUpdate(T entity);
    }
    /// <summary>
    /// Repository for entity with Guid id property
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepository<T>:IRepository<T,Guid> where T : class
    {
    }

}
