locked
Database First Approach and Nhibernate RRS feed

  • Question

  • User-1097602101 posted

    Hi, I need help. I want to ask how I can use Asp.net mvc + Nhibernate + postgresql and Database First Approach. I can use mvc, nhibernate and postgresql, but I don't know how to bind Database First Approach

    Thursday, September 12, 2019 11:02 AM

All replies

  • User665608656 posted

    Hi sssaa,

    Hi, I need help. I want to ask how I can use Asp.net mvc + Nhibernate + postgresql and Database First Approach. I can use mvc, nhibernate and postgresql, but I don't know how to bind Database First Approach

    You can try these two methods:

    • Fluent NHibernate: Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate
    • NHibernate.Mapping.Attributes: With NHibernate.Mapping.Attributes, you can use .NET attributes to decorate your entities and these attributes will be used to generate the mapping information

    I also find a NHibernate Database-First Tutorial , you can refer to it:

    https://www.devart.com/entitydeveloper/nhibernate-database-first.html

    Best Regards,

    YongQing.

    Friday, September 13, 2019 7:44 AM