FirmTracker-Server/nHIbernate/Expenses/ExpenseMapping.cs
2024-05-16 21:25:07 +02:00

18 lines
385 B
C#

using FluentNHibernate.Mapping;
namespace FirmTracker_Server.nHibernate.Expenses
{
public class ExpenseMapping : ClassMap<Expense>
{
public ExpenseMapping()
{
Table("Expenses");
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.Date);
Map(x => x.Value);
Map(x => x.Description);
}
}
}