How to add Foreign key attribute in Winrt


  • Hi,

    I have created a data model for accessing the SQLite database. I am able to create primary key in the code but unble to create a Foreign key. A Foreign key is added in the database although.

    Following is the sample:

    [PrimaryKey, AutoIncrement]


    publicintId { get; set; }

    But when I try to add Foreign key it throws an error saying "Foreign key could not be found"



    publicintprojid{get; set;}

    Thanks in advance

    Tuesday, May 20, 2014 5:22 AM


  • You might want to try this on a SQLite forum.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, May 20, 2014 1:11 PM