Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not create a table with multiple primary key with SQLiteConnection.CreateTable<>() #282

Closed
lionpham opened this issue May 13, 2014 · 2 comments

Comments

@lionpham
Copy link

I have an entity:

class Entity
    {
        [PrimaryKey]
        public int FirstKey { get; set; }

        [PrimaryKey]
        public int SecondKey { get; set; }
    }

I use SQLiteConnection.CreateTable<>() to create table:

SQLiteConnection.CreateTable<Entity>();

However, I got the following error: table "Entity" has more than one primary key.

Please help. Thank you.

@mfeingol
Copy link

cf #281

@praeclarum
Copy link
Owner

Closing this as a duplicate of many issues including #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants