Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I believe an implementation of the answer by Peter Taylor above would be: public override EntityEntry<TEntity> Add<TEntity>([NotNullAttribute] TEntity entity) where TEntity : clas...
Answer
#1: Initial revision
I believe an implementation of the answer by Peter Taylor above would be: ```cs public override EntityEntry<TEntity> Add<TEntity>([NotNullAttribute] TEntity entity) where TEntity : class { return Add(entity, base.Add); } public TEntityEntry_TEntity Add<TEntity, TEntityEntry_TEntity>([NotNullAttribute] TEntity entity, [NotNullAttribute] Func<TEntity, TEntityEntry_TEntity> wrap) where TEntity : class where TEntityEntry_TEntity : EntityEntry { return wrap(entity); } ```