Forum Discussion

Mohammad Amer's avatar
Mohammad Amer
Copper Contributor
Sep 14, 2018

Column XX in table dbo.YY is of a type that is invalid for use as a key column in an index.

Column XX in table dbo.YY is of a type that is invalid for use as a key column in an index.

Entity Framework error after creating index and try to update the database.

 

        [Column(TypeName = "VARCHAR")]
        [StringLength(150)]
        [Index("INDEX_EmailItemCaseManager", IsUnique = false)]
        public string EmailItemCaseManager { get; set; }

Resources