Hello Ara,
Here is an example of almost all index construction-related options from the online manual. Notice [Index("HireDate:DESC"... part.
[Index("FirstName", "LastName")]
[Index("Login", Unique = true, Name = "IX_LOGIN")]
[Index("HireDate:DESC", IncludedFields = new[]{"FirstName", "LastName"})]
public class Employee : Person
{
[Field, Key]
public int Id { get; private set; }
[Field]
public string Login { get; set; }
[Field(Length = 20)]
public string LastName { get; set; }
[Field(Length = 10)]
public string FirstName { get; set; }
[Field]
public DateTime HireDate { get; set; }
Hope that helps.
answered
Jan 13 '11 at 22:17
Dmitri Maximov
2211●1●2●11