Relaxed the need for Types that represent database boundaries to extend from ActiveRe...
[castle.git] / Samples / Castle / PetStore.Web / data-access-ar.config
blob40af473bf873442f4f5f5d4f32869a015317f62b
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
4 <facilities>
6 <facility id="arintegration"
7 type="Castle.Facilities.ActiveRecordIntegration.ActiveRecordFacility, Castle.Facilities.ActiveRecordIntegration"
8 isWeb="true" >
10 <assemblies>
11 <item>PetStore.Model</item>
12 </assemblies>
14 <config>
15 <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
16 <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
17 <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
18 <add key="hibernate.connection.connection_string" value="#{connectionString}" />
19 </config>
21 </facility>
23 </facilities>
25 <components>
27 <component
28 id="user.data.access"
29 service="PetStore.Service.IUserDataAccess, PetStore.Service"
30 type="PetStore.Service.DataAccess.AR.ARUserDataAccess, PetStore.Service" />
32 <component
33 id="category.data.access"
34 service="PetStore.Service.ICategoryDataAccess, PetStore.Service"
35 type="PetStore.Service.DataAccess.AR.ARCategoryDataAccess, PetStore.Service" />
37 <component
38 id="product.data.access"
39 service="PetStore.Service.IProductDataAccess, PetStore.Service"
40 type="PetStore.Service.DataAccess.AR.ARProductDataAccess, PetStore.Service" />
42 </components>
44 </configuration>