Hi.
i want to fetch primary key id using repository after insert the record .
public void Insert(TEntity entity)
{
if (entity == null)
{
throw new ArgumentNullException("entity");
}
else
{
DbSet.Add(entity);
_dbContext.Entry(entity).State = EntityState.Added;
_dbContext.SaveChanges();
_dbContext.Entry(entity).GetDatabaseValues();
}
}