Repository Pattern : Add Item

Posted by No Body on Stack Overflow See other posts from Stack Overflow or by No Body
Published on 2010-05-11T23:39:51Z Indexed on 2010/05/11 23:44 UTC
Read the original article Hit count: 153

Filed under:
|
|

Just need to clarify this one, If I have the below interface

public interface IRepository<T>
{
    T Add(T entity);
}

when implementing it, does checking for duplication if entity is already existing before persist it is still a job of the Repository, or it should handle some where else?

© Stack Overflow or respective owner

Related posts about c#

Related posts about repository