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

Dynamic LINQ to Entities Queries Using WCF/WPF Demo Code

, 30 Nov 2008
Demonstrates a method of dynamic query across WCF Service boundaries.
Linq2WCF.zip
Linq2WCF
Lib
FluidKit.dll
LINQ2Entities
bin
Debug
Release
LINQ2Entities.dll
Northwind.edmx
obj
Debug
Refactor
TempPE
Release
TempPE
Properties
Linq2WCF.4.1.resharper.user
Linq2WCF.gpState
PortalHost
bin
Debug
Release
LINQ2Entities.dll
PortalHost.exe
PortalHost.InstallLog
PortalHost.InstallState
Service.dll
obj
Debug
Refactor
TempPE
Release
TempPE
Properties
PortalMSIInstaller
Debug
PortalMSIInstaller.vdproj
Release
PortalMSIInstaller.msi
setup.exe
PortalService
bin
Debug
Release
LINQ2Entities.dll
Service.dll
Contracts
DataContracts
Requests
Responses
obj
Debug
Refactor
TempPE
Release
TempPE
Properties
WpfClient
AttachedProperties
bin
Debug
Release
FluidKit.dll
WpfClient.exe
WpfClient.vshost.exe
WpfClient.vshost.exe.manifest
Commands
EventArgs
Images
close.png
Customer.png
Diag.png
lvDetails.png
lvIcons.png
lvList.png
Order.png
run.png
Search.png
searchGlass.png
obj
Debug
App.baml
CustomerOrdersWindow.baml
DiagnosticsWindow.baml
Refactor
Resources
AppStyles.baml
TempPE
Properties.Resources.Designer.cs.dll
Service References.ServiceClient.Reference.cs.dll
Service References.ServiceReference.Reference.cs.dll
UserControls
CurrentCustomerControl.baml
CurrentCustomerOrdersControl.baml
SearchClauseControl.baml
SearchControl.baml
WpfClient.exe
WpfClient_MarkupCompile.lref
Release
App.baml
CustomerOrdersWindow.baml
DiagnosticsWindow.baml
Resources
AppStyles.baml
TempPE
Properties.Resources.Designer.cs.dll
Service References.ServiceReference.Reference.cs.dll
UserControls
CurrentCustomerControl.baml
CurrentCustomerOrdersControl.baml
SearchClauseControl.baml
SearchControl.baml
WpfClient.exe
WpfClient_MarkupCompile.lref
Properties
Settings.settings
Resources
Service References
ServiceReference
configuration.svcinfo
configuration91.svcinfo
Portal.wsdl
Portal1.wsdl
Reference.svcmap
WpfClient.ServiceReference.Response.datasource
ServiceProxy
UserControls
ValueConverters
ViewModels
WPFClient.csproj.user
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Service.Portal" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Service.Portal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:63004/Portal?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import schemaLocation="http://localhost:63004/Portal?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/LINQ2Entities" />
  <xs:complexType name="Request">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="Request" nillable="true" type="tns:Request" />
  <xs:complexType name="CustomerRequest">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Request">
        <xs:sequence />
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="CustomerRequest" nillable="true" type="tns:CustomerRequest" />
  <xs:complexType name="CustomerSearchRequest">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Request">
        <xs:sequence>
          <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="SearchParameters" nillable="true" type="q1:ArrayOfanyType" />
          <xs:element minOccurs="0" name="WhereClause" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="CustomerSearchRequest" nillable="true" type="tns:CustomerSearchRequest" />
  <xs:complexType name="Response">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="Response" nillable="true" type="tns:Response" />
  <xs:complexType name="CustomerResponse">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Response">
        <xs:sequence>
          <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/LINQ2Entities" name="Customers" nillable="true" type="q2:ArrayOfCustomers" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="CustomerResponse" nillable="true" type="tns:CustomerResponse" />
</xs:schema>

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

Sacha Barber
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)
 
- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence
 
Both of these at Sussex University UK.
 
Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

| Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 30 Nov 2008
Article Copyright 2008 by Sacha Barber
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid