Asp.net 项目中引入Nhibernate 本人新手 求详细步骤 谢谢大家 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.cnblogs.com/lyj/太多了,自个儿看吧... 下个包,然后用工具生成映射和对应的实体类映射文件改成嵌入的资源使用加上配置<?xml version="1.0" encoding="utf-16"?><hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory name=""> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="dialect">NHibernate.Dialect.MsSql2008Dialect, NHibernate</property> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="connection.connection_string">Data Source=192.168.0.10;Initial Catalog=CMS;Persist Security Info=True;User ID=sa;Password=258369</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> <property name="cache.use_minimal_puts">false</property> <property name="cache.use_query_cache">True</property> <property name="use_outer_join">false</property> <property name="adonet.batch_size">10</property> <property name="show_sql">true</property> <property name="command_timeout">10</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> <property name="current_session_context_class">thread_static</property> <mapping assembly="映射对应的命名空间" /> </session-factory></hibernate-configuration>其它的http://www.cnblogs.com/lyj/上东西不少,但是有些杂乱,有点入门之后看还可以随便网上搜搜有好多,spring.net的示例里也有,虽然看的更难些,但是例子很好值得琢磨 nhibernate连接sql2008 asp项目 有源码吗 ?给我一个 showModalDialog 的问题 想做一个卓越的秒杀器? entity framework 外键关联一对多的操作 网站发布的时候会更新bin下的dll文件,问这样会影响到当前应用下的其他页面么? .net编写的桌面程序(windows应用程序)怎么编译成.exe执行文件??? 怎么用脚本提交表单数据 一句奇怪的错误提示,请问是为什么,想不通,谢谢!!! 如何读取XML制定元素的信息 怎么样得到目前页面上显示的html 如何定义 asp.net 自定义控件外观 GRIDVIEW的问题 求一个正则表达式.....
映射文件改成嵌入的资源
使用加上配置
<?xml version="1.0" encoding="utf-16"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory name="">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect, NHibernate</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Data Source=192.168.0.10;Initial Catalog=CMS;Persist Security Info=True;User ID=sa;Password=258369</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
<property name="cache.use_minimal_puts">false</property>
<property name="cache.use_query_cache">True</property>
<property name="use_outer_join">false</property>
<property name="adonet.batch_size">10</property>
<property name="show_sql">true</property>
<property name="command_timeout">10</property>
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
<property name="current_session_context_class">thread_static</property>
<mapping assembly="映射对应的命名空间" />
</session-factory>
</hibernate-configuration>
其它的http://www.cnblogs.com/lyj/上东西不少,但是有些杂乱,有点入门之后看还可以
随便网上搜搜有好多,spring.net的示例里也有,虽然看的更难些,但是例子很好值得琢磨