Skip to content

Composite indexes support  #60

@m4kz

Description

@m4kz

Hei,

I recently changed from using sqlServer to Sqlite, and just found that composite index generation has stopped working.

Example:
I have a class where I want the combination of name and a foreign object to be unique but the index is not being generated in the DB:

public class foo {
        public int? Id { get; set; }

        [Index("IX_Name_OtherObject", 1, IsUnique = true)]
        public string Name { get; set; }

        [Index("IX_Name_OtherObject", 1, IsUnique = true)]
        public OtherObject otherObject { get; set; }
}

Thanks for your great work with bringing code first to SQLite 👍

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions