Click here to Skip to main content
11,583,865 members (62,892 online)
Click here to Skip to main content
Add your own
alternative version

Creating a Domain Service Factory to Host POCO Entities

, 10 Dec 2010 CPOL 21.6K 593 11
This article demonstrates how to write a domain service factory to host plain old class object (POCO) entities and use them through RIA Services in Silverlight version 4.
BasicDataViewer_with_DomainServiceFactories.zip
BasicDataViewer
BasicDataViewer
BasicDataViewer.5.1.ReSharper.user
App_Data
BasicDataViewer.csproj.user
bin
DBData.csdl
DBData.msl
DBData.ssdl
Entities.dll
WebApplication1.dll
DBData.edmx
DynamicData
Content
Images
Back.gif
header_back.gif
PgFirst.gif
PgLast.gif
PgNext.gif
PgPrev.gif
plus.gif
CustomPages
EntityTemplates
FieldTemplates
Filters
PageTemplates
Global.asax
obj
Debug
TempPE
Properties
replace
Scripts
BusinessApp
BusinessApp.Web
App_Data
bin
BusinessApp.Web.dll
Entities.dll
EntRIAServices.Web.dll
Microsoft.Practices.ServiceLocation.dll
BusinessApp.Web.csproj.user
ClientBin
BusinessApp.xap
Global.asax
Models
Shared
obj
Debug
LiveIntellisense
Resources
Sources
TempPE
Properties
Resources
Service References
Services
Assets
Resources
Bin
Debug
ar
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
bg
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
BusinessApp.dll
BusinessApp.xap
ca
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
cs
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
da
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
de
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
el
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
EntRIAServices.dll
es
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
et
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
eu
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
fi
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
fr
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
he
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
hr
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
hu
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
id
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
it
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
ja
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
ko
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
lt
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
lv
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
ms
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
nl
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
no
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
pl
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
pt
pt-BR
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
ro
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
ru
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
sk
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
sl
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
sr-Cyrl-CS
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
sr-Latn-CS
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
sv
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
System.ComponentModel.DataAnnotations.dll
System.ServiceModel.DomainServices.Client.dll
System.ServiceModel.DomainServices.Client.Web.dll
System.ServiceModel.Web.Extensions.dll
System.Windows.Controls.Data.DataForm.Toolkit.dll
System.Windows.Controls.Data.Input.dll
System.Windows.Controls.dll
System.Windows.Controls.DomainServices.dll
System.Windows.Controls.Navigation.dll
System.Windows.Data.dll
System.Windows.Interactivity.dll
th
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
tr
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
uk
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
vi
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.resources.dll
zh-Hans
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
zh-Hant
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.DomainServices.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
Release
BusinessApp.csproj.user
Controls
Generated_Code
Models
Shared
Helpers
Libs
System.Windows.Controls.Data.DataForm.Toolkit.dll
Models
obj
Debug
Assets
Controls
LiveIntellisense
Resources
Sources
TempPE
TempPE
Views
Login
Properties
DataSources
BusinessApp.Web.UserRegistrationContext.datasource
EntRIAServices.Web.AccessableDomainContext.datasource
EntRIAServices.Web.EntityDomainContext.datasource
Service References
Views
Login
Web
Resources
Entities
bin
Debug
Entities.dll
Release
obj
Debug
TempPE
Properties
EntRIAServices
EntRIAServices.Web
bin
Debug
Entities.dll
EntRIAServices.Web.dll
Microsoft.Practices.ServiceLocation.dll
Release
EntRIAServices.Web.csproj.user
obj
Debug
LiveIntellisense
Sources
TempPE
Properties
Bin
Debug
ar
System.ComponentModel.DataAnnotations.resources.dll
bg
System.ComponentModel.DataAnnotations.resources.dll
ca
System.ComponentModel.DataAnnotations.resources.dll
cs
System.ComponentModel.DataAnnotations.resources.dll
da
System.ComponentModel.DataAnnotations.resources.dll
de
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
el
System.ComponentModel.DataAnnotations.resources.dll
EntRIAServices.dll
es
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
et
System.ComponentModel.DataAnnotations.resources.dll
eu
System.ComponentModel.DataAnnotations.resources.dll
fi
System.ComponentModel.DataAnnotations.resources.dll
fr
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
he
System.ComponentModel.DataAnnotations.resources.dll
hr
System.ComponentModel.DataAnnotations.resources.dll
hu
System.ComponentModel.DataAnnotations.resources.dll
id
System.ComponentModel.DataAnnotations.resources.dll
it
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
ja
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
ko
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
lt
System.ComponentModel.DataAnnotations.resources.dll
lv
System.ComponentModel.DataAnnotations.resources.dll
ms
System.ComponentModel.DataAnnotations.resources.dll
nl
System.ComponentModel.DataAnnotations.resources.dll
no
System.ComponentModel.DataAnnotations.resources.dll
pl
System.ComponentModel.DataAnnotations.resources.dll
pt
pt-BR
System.ComponentModel.DataAnnotations.resources.dll
System.ComponentModel.DataAnnotations.resources.dll
ro
System.ComponentModel.DataAnnotations.resources.dll
ru
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
sk
System.ComponentModel.DataAnnotations.resources.dll
sl
System.ComponentModel.DataAnnotations.resources.dll
sr-Cyrl-CS
System.ComponentModel.DataAnnotations.resources.dll
sr-Latn-CS
System.ComponentModel.DataAnnotations.resources.dll
sv
System.ComponentModel.DataAnnotations.resources.dll
System.ComponentModel.DataAnnotations.dll
System.ServiceModel.DomainServices.Client.dll
System.ServiceModel.DomainServices.Client.Web.dll
System.ServiceModel.Web.Extensions.dll
th
System.ComponentModel.DataAnnotations.resources.dll
tr
System.ComponentModel.DataAnnotations.resources.dll
uk
System.ComponentModel.DataAnnotations.resources.dll
vi
System.ComponentModel.DataAnnotations.resources.dll
zh-Hans
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
zh-Hant
System.ComponentModel.DataAnnotations.resources.dll
System.ServiceModel.DomainServices.Client.resources.dll
System.ServiceModel.DomainServices.Client.Web.resources.dll
System.ServiceModel.Web.Extensions.resources.dll
Release
EntRIAServices.csproj.user
Generated_Code
obj
Debug
TempPE
Properties
_ReSharper.BasicDataViewer
BuildScriptCache
.crc
.version
4
7d4d8132.dat
DecompilerCache
NamedArguments
.crc
.version
2
7104868c.dat
PdbInfo
af122884e5a6224942204e70bf0cea0495dd76bd
eb21964263bda6cbde319b5f1790d4fa5afa9fef
ProjectModel
ProjectModel.dat
Resources
.crc
.version
1
2f25399c.dat
SymbolCache.bin
TagPrefixes
.crc
.version
7
56395d67.dat
TodoCache
.crc
.version
4
7d4d8132.dat
WebsiteFileReferences
.crc
.version
WordIndex
.crc
.version
2
652cebf3.dat
3
3da7681b.dat

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)

Share

About the Author

Beavis Killer
Unknown
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 10 Dec 2010
Article Copyright 2010 by Beavis Killer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid