Dear all
i Wonder how can i edit a node property (in C# not by hand :) )
i have the follwing XMl file (hibernate.cfg. xml)
[html]<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhib ernate-configuration-2.0" >
<session-factory name="NHibernat e.Test">
<!-- properties -->
<property name="connectio n.provider">NHi bernate.Connect ion.DriverConne ctionProvider</property>
<property name="connectio n.driver_class" >NHibernate.Dri ver.OracleDataC lientDriver</property>
<property name="connectio n.connection_st ring">User ID=th;password= manager;Data Source=th02;Per sist Security Info=False</property>
<property name="show_sql" >true</property>
<property name="dialect"> NHibernate.Dial ect.Oracle9Dial ect</property>
<property name="use_outer _join">true</property>
<property name="query.sub stitutions">tru e 1, false 0, yes 'Y', no 'N'</property>
<!-- mapping files -->
<mapping assembly="Pla.P er"/>
<mapping assembly="Int.P er"/>
<mapping assembly="Pen.M ap"/>
</session-factory>
</hibernate-configuration>[/html]
i want to change dynamically the connection.conn ection_string string property
thanks alot
ron
NOTE: Please add code or html tags to samples. Thanks, moderator.
i Wonder how can i edit a node property (in C# not by hand :) )
i have the follwing XMl file (hibernate.cfg. xml)
[html]<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhib ernate-configuration-2.0" >
<session-factory name="NHibernat e.Test">
<!-- properties -->
<property name="connectio n.provider">NHi bernate.Connect ion.DriverConne ctionProvider</property>
<property name="connectio n.driver_class" >NHibernate.Dri ver.OracleDataC lientDriver</property>
<property name="connectio n.connection_st ring">User ID=th;password= manager;Data Source=th02;Per sist Security Info=False</property>
<property name="show_sql" >true</property>
<property name="dialect"> NHibernate.Dial ect.Oracle9Dial ect</property>
<property name="use_outer _join">true</property>
<property name="query.sub stitutions">tru e 1, false 0, yes 'Y', no 'N'</property>
<!-- mapping files -->
<mapping assembly="Pla.P er"/>
<mapping assembly="Int.P er"/>
<mapping assembly="Pen.M ap"/>
</session-factory>
</hibernate-configuration>[/html]
i want to change dynamically the connection.conn ection_string string property
thanks alot
ron
NOTE: Please add code or html tags to samples. Thanks, moderator.
Comment