2024-05-06 21:25:10 +02:00
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
|
|
|
|
|
namespace FirmTracker_Server.nHibernate.Transactions
|
|
|
|
|
{
|
|
|
|
|
public class TransactionProductMapping : ClassMap<TransactionProduct>
|
|
|
|
|
{
|
|
|
|
|
public TransactionProductMapping()
|
|
|
|
|
{
|
|
|
|
|
Table("TransactionProducts");
|
|
|
|
|
Id(x => x.Id).GeneratedBy.Identity();
|
|
|
|
|
|
|
|
|
|
Map(x => x.TransactionId).Column("TransactionId").Not.Nullable();
|
2024-05-16 00:42:06 +02:00
|
|
|
|
Map(x => x.ProductID).Column("ProductId").Not.Nullable();
|
2024-05-06 21:25:10 +02:00
|
|
|
|
|
|
|
|
|
Map(x => x.Quantity);
|
2024-05-16 00:42:06 +02:00
|
|
|
|
//Map(x => x.UnitPrice);
|
2024-05-06 21:25:10 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|