private static DiffIndexType? GetIndexType(Index mix) { if (mix is UniqueIndex && ((UniqueIndex)mix).ViewName != null) return null; if (mix is PrimaryClusteredIndex) return DiffIndexType.Clustered; return DiffIndexType.NonClustered; }