FirmTracker-Server/nHIbernate/Products/ProductMapping.cs
Maciej Maciejewski b45dedab71 Add project files.
2024-04-15 22:15:29 +02:00

18 lines
451 B
C#

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);
}
}
}