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

  • SEARCH
  • Home
  • 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

As we are working locally so our service link is: http://localhost:8012/webservice.asmx When we deploy
I'm working on optimising the image retrieval from the database with LINQ. The approximate
I get this error when I use my autogenerated ServiceBindingStub.java. WebService side is working
I want to use following xml webservice. www.musicbrainz.org/ws/2/artist/?query=artist:michael jackson which format is like below:
I'm working on an XML webservice (in PHP!), and in order to do things
I create SQL CE 3.5 database dynamically in asp.net webservice. I can create tables,
So I am working on a webservice to access our weather forecast data (10000
I was today trying to figure out on working with WebService and found many
I am working with a webservice which gives me an image as an array
I'm working with a webservice that offers almost duplicated code across two namesspaces. Lets

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.