I am using SQLite-Net-Extensions on C# within a WPF application. I have added a new property in my class "Foo":
[ForeignKey(typeof(Distributor))]
public int DistributorId { get; set; }
[ManyToOne(CascadeOperations = CascadeOperation.None)]
public Distributor Distributor
{
get
{
return this.distributor;
}
set
{
if (this.distributor != value)
{
this.distributor = value;
NotifyPropertyChanged("Distributor");
}
}
}
When I Create the table:
_conn.CreateTable<Foo>();
Since the table already exists, it does not create the table but I would expect that this command adds the new column DistributorId. Is there any way to force that?