getting error like this "Invalid object name '@p0'"
this is my code in install plugin objectcontext file
public void Install()
{
//create tables
this.ExecuteSqlScript(this.GenerateCreateScript());
this.SaveChanges();
var logTableName = this.GetTableName<tablename>();
Database.ExecuteSqlCommand($"INSERT INTO [{logTableName}] (ProductId, Status, IsDeleted, InTime,
ActionType) SELECT Id, 0, Deleted, GETDATE(), 'Create' FROM [Product]");
this.SaveChanges();
}