FirmTracker-Server/nHibernate/Reports/ReportTransactionMapping.cs

16 lines
426 B
C#
Raw Normal View History

using FluentNHibernate.Mapping;
namespace FirmTracker_Server.nHibernate.Reports
{
public class ReportTransactionMapping : ClassMap<ReportTransaction>
{
2024-06-08 15:04:52 +02:00
public ReportTransactionMapping()
{
Table("ReportTransactions");
2024-06-08 15:04:52 +02:00
CompositeId()
.KeyReference(x => x.Report, "ReportId")
.KeyReference(x => x.Transaction, "TransactionId");
}
}
}