FirmTracker-Server/nHIbernate/Expenses/ExpenseMapping.cs
2024-06-08 03:34:24 +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);
}
}
}