public virtual int InsertWithoutIdentity(T entity) { SetPrimaryKeyValue(entity); SetOtherKeyValue(entity); var query = QB <T> .InsertWithoutIdentityColumn(); return(_dbContext.SqlConnection.Query <int>(query, entity).FirstOrDefault()); }