we are trying the Plugin with data access. Here when we create the builder class ProductViewTrackerRecordBuilder and getting the following error when using the example code in the documentation.
PLEASE ASSIST.
Error CS0308 The non-generic method 'IColumnOptionSyntax<ICreateTableColumnOptionOrWithColumnSyntax, ICreateTableColumnOptionOrForeignKeyCascadeOrWithColumnSyntax>.ForeignKey(string, string)' cannot be used with type arguments Nop.Plugin.Appfinity.MyFirstPlugin
Hi @yidna, The error is actually in the line where we define the foreign key ForeignKey<Product>(onDelete: Rule.Cascade)
Is this working for you? Visual studio intellisense is not showing such an extension method available. I dont kow if this is because of any reference not added.
This error only pops up after I add using FluentMigrator.Builders.Create.Table; and why does it only cause issue with .WithColumn(nameof(ProductViewTrackerRecord.ProductId)).AsInt32().ForeignKey<Product>(onDelete: Rule.Cascade)
but not .WithColumn(nameof(ProductViewTrackerRecord.CustomerId)).AsInt32().ForeignKey<Customer>(onDelete: Rule.Cascade)