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 943641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:28:01+00:00 2026-05-15T22:28:01+00:00

For examples sake, lets say I have a table containing these columns ID (primary

  • 0

For examples sake, lets say I have a table containing these columns

  • ID (primary key, auto increment)
  • FirstName (32 characters)
  • LastName (32 characters)
  • Picture (binary JPEG data containing on average 10k of data)

Using SubSonic and/or LINQ how can I update only the FirstName column of a record and not try to get the Picture column or try to update the picture column?

Right now the only way I see of doing it is something like this:

var p=Data.People(x=>x.ID==SomeID);
p.FirstName="Foobar";
p.Save();

What happens over the line from what I can tell though is that it completely loads the object and completely saves the object. I don’t want to have to transfer over 10k of data for such a simple operation though. How do I fix this?

  • 1 1 Answer
  • 2 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. Editorial Team
    Editorial Team
    2026-05-15T22:28:02+00:00Added an answer on May 15, 2026 at 10:28 pm

    Here’s an old example from Rob for a SubSonic 3 preview version.

    db.Update<Products>().Set(
        x => x.Discontinued == false, 
        x => x.ReorderLevel == 100)
      .Where(x=>x.Category==5)
      .Execute();
    

    http://blog.wekeroad.com/2008/11/12/subsonic-3-0-preview-2

    In your terms:

    db.Update<People>().Set(
        p => p.FirstName == "FooBar")
      .Where(p => p.ID == SomeId)
      .Execute();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so lets say I have a table comprising three columns. The first column
For examples sake, lets say I have a Flash SWF on my web server.
Let's say I have the following 4 tables (for examples' sake): Owners, Trucks, Boxes,
I have two data.frames. For examples sake let's say they look like this: df1
If I have a string that contains a url (for examples sake, we'll call
I have an array of part lengths, for examples sake:- array(150, 180, 270); I
So here is the situation: I have a class. For examples sake: class Author
I have a table which needs 2 fields. One will be a foreign key,
We've come across a problem where we have some data, lets say a stock
For the sake of the example, let's say that I have to model the

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.