private IEnumerable <Index> GetIndices( DbContext dbContext, MetadataWorkspace metadata, Type entityType) { var tableInfo = metadata.GetTableInfo(entityType); var databaseIndexInfo = _sqlHelper.GetIndexInformation(dbContext, tableInfo.Name); var indexes = _relationshipMapper.MapIndexes(databaseIndexInfo, tableInfo); return(indexes); }