Hello friends I am working on a project of c # I am new to this and I can not find the way to declare a foreigner from a class with c # code I clarify that I am using the MVC model but I give you one of my classes
class producto
{
[SQLite.PrimaryKey, SQLite.AutoIncrement]
public int id { get; set; }
[SQLite.NotNull]
public string nombre { get; set; }
public string tipo { get; set; }
public int numero { get; set; }
[SQLite.NotNull]
public string porcion { get; set; }
//Si yo quiero una foranea como la declaro crei que seria asi
// [SQLite.ForeignKey]
}
}
I appreciate you if someone can guide me