FirmTracker-Server/nHIbernate/Products/ProductMapping.cs

18 lines
451 B
C#
Raw Permalink Normal View History

2024-04-15 22:15:29 +02:00
using FluentNHibernate.Mapping;
namespace FirmTracker_Server.nHibernate.Products
{
public class ProductMapping : ClassMap<Product>
{
public ProductMapping()
{
Table("Products");
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.Name);
Map(x => x.Description);
Map(x => x.Price);
Map(x => x.Type);
Map(x => x.Availability);
}
}
}