28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using FruitBank.Common;
|
|
using FruitBank.Common.Entities;
|
|
using Nop.Data.Mapping;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Mapping;
|
|
|
|
public partial class NameCompatibility : INameCompatibility
|
|
{
|
|
/// <summary>
|
|
/// Gets table name for mapping with the type
|
|
/// </summary>
|
|
public Dictionary<Type, string> TableNames => new Dictionary<Type, string>
|
|
{
|
|
{ typeof(Files), FruitBankConstClient.FilesDbTableName},
|
|
{ typeof(Partner), FruitBankConstClient.PartnerDbTableName },
|
|
{ typeof(Shipping), FruitBankConstClient.ShippingDbTableName },
|
|
{ typeof(ShippingDocument), FruitBankConstClient.ShippingDocumentDbTableName },
|
|
{ typeof(ShippingItem), FruitBankConstClient.ShippingItemDbTableName},
|
|
{ typeof(ShippingItemPallet), FruitBankConstClient.ShippingItemPalletDbTableName},
|
|
{ typeof(ShippingDocumentToFiles), FruitBankConstClient.ShippingDocumentToFilesDbTableName},
|
|
};
|
|
|
|
|
|
/// <summary>
|
|
/// Gets column name for mapping with the entity's property and type
|
|
/// </summary>
|
|
public Dictionary<(Type, string), string> ColumnName => new();
|
|
} |