Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 183101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:03:23+00:00 2026-05-11T15:03:23+00:00

I am working on a webservice where we use LINQ-to-SQL for our database abstraction.

  • 0

I am working on a webservice where we use LINQ-to-SQL for our database abstraction. When clients use our webservice, the objects are serialized to XML and all is dandy.

Now we wish to develop our own client that uses the native data types since there’s no reason to do objects->xml->objects. However, from what I understand you can’t transfer LINQ objects as they directly map to the database and as such the data is ‘live’.

My question is whether there is a way to take a ‘snapshot’ of the data you’ve extracted, set the LINQ object to ‘offline’ and then transfer it. The data will not be changing after it’s transferred to our client and we don’t need the database access.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:03:23+00:00Added an answer on May 11, 2026 at 3:03 pm

    If you’re willing to use WCF (for the webservice and the client) you can decorate your Linq2SQL generated classes with the [DataContract] and [DataMember] attributes.

    Check the following links for some guidance:

    • http://msdn.microsoft.com/en-us/library/bb546184.aspx
    • http://msdn.microsoft.com/en-us/library/bb546185.aspx
    • http://www.codeproject.com/KB/WCF/LinqWcfService.aspx
    • http://www.aspfree.com/c/a/Windows-Scripting/Designing-WCF-DataContract-Classes-Using-the-LINQ-to-SQL-Designer/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on optimising the image retrieval from the database with LINQ. The approximate
I'm working with a webservice that offers almost duplicated code across two namesspaces. Lets
I'm working on a webservice + AJAX interface, and I'm worried about authentication. This
I am working on creating a .asmx webservice to meet the specific needs of
My web service (wcf) stopped working all of a sudden. I compared my web.config
I'm currently working on a Silverlight app and need to convert XML data into
I am working on a webservice that a previous employee built and I am
I've got a small WCF webservice working with the built-in WCF Service Host and
I'm trying to use Axis2 to connect to a SOAP webservice. This was previously
Background: I'm working on a webservice that I want to allow input that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.