'ASP.NET MVC FluentNHibernate mappings
I'm trying to give maintenance to a system that uses FluentNHibernate, there is no documentation and I'm trying to figure out how the tables where mapped in the database, the solution is divided on Application, Domain, Web Client and Data. Inside Data I can see another folder called Mappings that holds several classes related to the database, however only one shows to which table it belongs.
public CustomeLogMap()
{
Table("CustomeLogs");
Id(l => l.Id);
Map(l => l.Description).Not.Nullable().Length(100);
}
The rest of the classes don't show the table, I have another class called Employees, but the database has about 4 tables related to employee data (none of them with the name Employees) and several views.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
