nettiers的问题

来源:百度知道 编辑:UC知道 时间:2024/06/12 12:03:06
nettiers 是否支持在winform的开发中做数据访问层?如果支持,配置文件怎么写?

支持!
生成的report中有的,把下面的“xx”替换成你的namespace即可。
<configuration>
<configSections>
<section name="netTiersService"
type="xx.Data.Bases.NetTiersServiceSection, xx.Data"
allowDefinition="MachineToApplication"
restartOnExternalChanges="true" />
</configSections>
<netTiersService defaultProvider="SqlNetTiersProvider">
<providers>
<add
name="SqlNetTiersProvider"
type="xx.Data.SqlClient.SqlNetTiersProvider, xx.Data.SqlClient"
connectionStringName="netTiersConnectionString"
providerInvariantName="System.Data.SqlClient"
entityFactoryType="xx.Entities.EntityFactory"
useEntityFactory="true"
enableEntityTracking="true"
enableMethodAuthorization="