В EF Fluent API мы можем создавать индексы, используя
// In earlier versions
HasIndex(t => t.OccurrenceDate).IsUnique(false);
ИЛИ
// In older versions
Property(t => t.OccurrenceDate)
.HasColumnAnnotation(IndexAnnotation.AnnotationName,
new IndexAnnotation(new IndexAttribute("IX_OccurrenceDate") {
IsUnique = true,
}));
Вопрос в том, как указать атрибуты ASC
/ DESC
для созданного индекса?