Skip to content

Fixed a crash on tables that have more than one primary key.#5

Open
iadaz wants to merge 1 commit intohippasus:masterfrom
iadaz:master
Open

Fixed a crash on tables that have more than one primary key.#5
iadaz wants to merge 1 commit intohippasus:masterfrom
iadaz:master

Conversation

@iadaz
Copy link
Copy Markdown

@iadaz iadaz commented Feb 11, 2021

Now adds the PK attribute commented out (and doesn't crash), with a reminder that PetaPoco doesn't support them, for example:

    [TableName("sometable")]
    //Table has multiple primary keys which PetaPoco doesn't support: ProductId, ProductType
    //[PrimaryKey("ProductId,ProductType")]
    [ExplicitColumns]
    public partial class sometable

… a the PK attribute commented out, with a reminder that PetaPoco doesn't support them.
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

Successfully merging this pull request may close these issues.

1 participant