Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

WCF by Example - Chapter XVI - EF 5 & SQL CE - AzureWebSites Deployment

, 31 Jan 2013
EF Code First implementation of generic repository and unit of work. With deployment to Azure web sites using SQL Compact.
eDirectory.Server.zip
eDirectory.Server
AddressWcfService.svc
App_Data
eDirectory.sdf
bin
amd64
Microsoft.VC90.CRT
Microsoft.VC90.CRT.manifest
msvcr90.dll
sqlceca40.dll
sqlcecompact40.dll
sqlceer40EN.dll
sqlceme40.dll
sqlceqp40.dll
sqlcese40.dll
AutoMapper.dll
Common.Logging.dll
eDirectory.Common.dll
eDirectory.Domain.dll
eDirectory.EF.dll
eDirectory.NHibernate.dll
eDirectory.WcfService.dll
EntityFramework.dll
Iesi.Collections.dll
Newtonsoft.Json.dll
NHibernate.dll
Spring.Core.dll
System.Data.SqlServerCe.dll
System.Data.SqlServerCe.Entity.dll
x86
Microsoft.VC90.CRT
Microsoft.VC90.CRT.manifest
msvcr90.dll
sqlceca40.dll
sqlcecompact40.dll
sqlceer40EN.dll
sqlceme40.dll
sqlceqp40.dll
sqlcese40.dll
CustomerWcfService.svc
eDirectory.WPF.Azure.zip
eDirectory.WPF.Azure
AutoMapper.dll
Common.Logging.dll
eDirectory.Common.dll
eDirectory.WPF.exe
eDirectory.WPF.vshost.exe
Hardcodet.Wpf.TaskbarNotification.dll
Resources
Icons
Warning.ico
Spring.Core.dll
WPFToolkit.dll
<?xml version="1.0" encoding="utf-8" ?>
<!--
  NHibernate Configuration
  ========================
-->
  <objects xmlns="http://www.springframework.net">

    <!-- SERVER CONTAINER -->
    <object
        id="ServerContainerRef"
        type="eDirectory.Domain.AppServices.Container, eDirectory.Domain"
        singleton="true">

      <property name="RequestContext" ref="RequestContextRef" />
    </object>

    <!-- Request Context -->
    <object
            id="RequestContextRef"
            type="eDirectory.Domain.AppServices.WcfRequestContext.RequestContext, eDirectory.Domain" />
    
    <!-- Global Context -->
    <object
            id="GlobalContextRef"
            type="eDirectory.Domain.AppServices.GlobalContext, eDirectory.Domain"
            factory-method="Instance"
            singleton="true">

      <property name="TransFactory" ref="TransFactoryRef" />
    </object>

    <!-- Transaction Factory -->
    <object
            id="TransFactoryRef"
            type="eDirectory.NHibernate.TransManager.TransManagerFactoryNh, eDirectory.NHibernate" >
      
      <property name="ConfigurationFileName" value="nhibernate.ce.cfg.xml" />
      <property name="IsIisEnvironment" value="true" />
    </object>

    <!-- AutoMapper -->
    <object
            id="AutoMapperConfiguratorRef"
            type="eDirectory.Domain.Entities.AutoMapperConfigurator, eDirectory.Domain"
            init-method="Install" />

  </objects>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Enrique Albert
Software Developer (Senior)
Ireland Ireland
No Biography provided
Follow on   Twitter

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 31 Jan 2013
Article Copyright 2013 by Enrique Albert
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid