// ***********************************************************************
// Assembly : FCS.Lib
// Author : FH
// Created : 05-13-2020
//
// Last Modified By : FH
// Last Modified On : 2020-08-30
// ***********************************************************************
//
// Copyright © FCS 2015-2020
//
//
// ***********************************************************************
namespace FCS.Lib
{
///
/// Interface IRepository
///
///
/// The type of the TKey.
public interface IRepository where T : class
{
///
/// Gets the specified identifier.
///
/// The identifier.
/// T.
T GetById(TKey id);
///
/// Creates the specified entity.
///
/// The entity.
void Create(T entity);
///
/// Updates the specified entity.
///
/// The entity.
void Update(T entity);
///
/// Deletes the specified identifier.
///
/// The identifier.
void Delete(TKey id);
}
}