using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IndexAnnotation.Model
{
    /// <summary>
    /// This Entity demonstrates an Index with a Custom Name
    /// </summary>     
    public class Customer
    {
        [Key]
        public int  custID { get; set; }
        
        //Property with a custom named Index 
        [Index("CustomIndex")]
        public int indexProp { get; set; }

        public string custName { get; set; }
        
        public List<Order> Orders { get; set; }
    }
}
