开发者

NHibernate mapping in Asp.Net using MySql

开发者 https://www.devze.com 2022-12-24 15:07 出处:网络
I\'m new to NHibernate. Actually I\'m trying to save the values ffrom two text boxes into MySql Database in asp.Net page. I that开发者_运维技巧 I got

I'm new to NHibernate. Actually I'm trying to save the values ffrom two text boxes into MySql Database in asp.Net page. I that开发者_运维技巧 I got "Resource not found: WebApplication1.Sample.hbm.xml" error. But I can't fix this error. Can anyone help me to fix this one?


That sounds like the error you get if you do not set your hbm's Build Action to Embedded Resource.

Step by step for build action

EDIT References to set to Copy Local = True

  • Castle.Core
  • Castle.DynamicProxy2
  • Iesi.Collections
  • NHibernate
  • NHibernate.ByteCode.Castle
0

精彩评论

暂无评论...
验证码 换一张
取 消