NHibernate Learning Notes Problem record

Source: Internet
Author: User

To record the problems encountered in the process of learning NHibernate

1. Could not instantiate dialect class NHibernate.Dialect.OracleDialect

"Could not load type NHibernate.Dialect.OracleDialect. Possible cause:no assembly name specified "

Found a lot of solutions can not, the final method

When using Oracle databases in the NHibernate2.1.0 version, it is necessary to note that Oracle versions are written in the configuration file

<property name= "dialect" >NHibernate.Dialect.Oracle10gDialect</property>

2. Error message "IDs for this class must is manually assigned before calling Save ()"

This is due to database access errors caused by database constraints check the constraints in the following table to see whether a primary key foreign KEY constraint or a non-empty constraint results.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.