Fluent, XML-less, compile-safe, convention-based mappings for NHibernate.
Fluent NHibernate is a library that provides a fluent, XML-less, and convention-based mapping system for NHibernate, a popular .NET object-relational mapper (ORM). It allows developers to define database mappings using a strongly-typed C# API instead of traditional XML files, making the configuration process more intuitive and less error-prone. The library focuses on improving developer productivity and code safety by catching mapping errors at compile time and automating repetitive mapping tasks.
.NET developers using NHibernate for data access who want a more maintainable and type-safe way to configure their ORM mappings, especially those working on medium to large applications where XML mapping files become cumbersome.
Developers choose Fluent NHibernate over standard NHibernate XML mappings because it offers a more modern, developer-friendly workflow with compile-time safety, reduced boilerplate through conventions, and better integration with C# tooling and refactoring.
Fluent NHibernate!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Catches mapping errors at compile time rather than runtime, reducing bugs and improving developer confidence, as highlighted in the README's 'Compile-Safe Mappings' feature.
Uses a strongly-typed, chainable API that integrates seamlessly with C# tooling and refactoring, replacing verbose XML files with intuitive code, as per the 'Fluent Interface' description.
Allows automatic application of mapping patterns based on configurable conventions, reducing repetitive code and boilerplate, evidenced by the 'Convention-Based Automation' and 'Auto Mapping' features.
Eliminates the need for fragile XML mapping files, making configuration more maintainable and less error-prone, a core value proposition stated in the README.
Ties your project to NHibernate's ecosystem and limitations, which may not be as actively developed or feature-rich as alternatives like Entity Framework Core, adding vendor lock-in.
Requires understanding both NHibernate concepts and Fluent NHibernate's API, with documentation scattered across a wiki, making onboarding complex for new users.
The project's core development peaked around 2018, so it might lack support for newer .NET features or have slower bug fixes, relying on community contributions.