protected void ValidateId(TEntity dbEntity) { EnsureUtil.EnsureValidIndividualResourceId("Entity " + dbEntity + " has an invalid id", dbEntity.Id); }