I don't seem to have a .PrimaryColumn() method off .ToTable()
I had been trying this
Delete.ForeignKey()
.FromTable("TableA").ForeignColumn("ColumnA")
.ToTable("TableB");
and it threw an exception.
I have been using the named relationship syntax as you suggested, but
I didn't necessarily want to bother naming them.
I am using the latest version on nuget - is this a bug?
On Jun 14, 9:30 pm, Jeff Treuting <
j...@truburn.net> wrote:
> Depends on how you created it.
>
> If you have an existing FK where you know the name then you can do this:
>
> Delete.ForeignKey("FK_Name").OnTable("TableA");
>
> However if you create the FK in a migration by doing:
>
> Create.ForeignKey()
> .FromTable("TableA").ForeignColumn("ColumnA")
> .ToTable("TableB").PrimaryColumn("ColumnB");
>
> Then you can delete it by doing:
>
> Delete.ForeignKey()
> .FromTable("TableA").ForeignColumn("ColumnA")
> .ToTable("TableB").PrimaryColumn("ColumnB");
>
> *Jeff Treuting*
> Truburn Solutions, LLC
> (206)
393-0717www.truburn.net
>
j...@truburn.net