I am facing an issue with using a test.customer table which I created on database and I created its entity in Nop 4.50. The issue is while mapping this table into Nop 4.50 structure. My builder class looks like as followed:
table
.InSchema("test")
.WithColumn(NameCompatibilityManager.GetColumnName(typeof(TestCustomer), nameof(TestCustomer.CustomerId))).AsInt32()
.ForeignKey<Customer>(onDelete: Rule.None).Nullable();
I also used BaseNameCompatibility class for mentioning the table name that I wanted to use. The class looks like below:
public class BaseNameCompatibility : INameCompatibility
{
public Dictionary<Type, string> TableNames => new() { { typeof(TestCustomer), "Customer" } };
public Dictionary<(Type, string), string> ColumnName => throw new NotImplementedException();
}
The error which I am getting is like as below:
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: TestCustomer'.
Please help me out from in this. Thanks in advance.