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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:16:43+00:00 2026-05-23T18:16:43+00:00

I got a table with these columns: PdfManuals: Id (PK, int, not null) Name

  • 0

I got a table with these columns:

  • PdfManuals:
  • Id (PK, int, not null)
  • Name (nvarchar(150), not null)
  • ManufacturerId (int, not null)
  • ClientId (nvarchar(50), not null)
  • LanguageId (int, not null)
  • ImageSize (nvarchar(50), not null)
  • PdfName (nvarchar(150), not null)
  • Image (image, null)
  • Pdf (image, null)

And another table: PdfManuals_Manufacturers

  1. Id (PK, int, not null)
  2. Name (nvarchar(150), not null)
  3. ClientId (nvarchar(50), not null)
  4. LanguageId (int, not null)

And trying to perform this action:

public ActionResult DeleteManufacturer(int id)
    {
        var manufacturer = _db.PdfManuals_Manufacturers.Where(x => x.Id == id).SingleOrDefault();
        var pdfManuals = _db.PdfManuals.Where(x => x.ManufacturerId == id).ToList();

        if (manufacturer != null)
        {
            _db.PdfManuals_Manufacturers.DeleteOnSubmit(manufacturer);
            _db.PdfManuals.DeleteAllOnSubmit(pdfManuals);
        }
        _db.SubmitChanges();

        return RedirectToAction("Manufacturers");
    }

But i get this error:

The data types image and varbinary(max) are incompatible in the equal to operator.

I am using ASP.NET MVC, and LINQ-To-SQL
I don’t understand why, maybe you guys can help me? 🙂

  • 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. Editorial Team
    Editorial Team
    2026-05-23T18:16:44+00:00Added an answer on May 23, 2026 at 6:16 pm

    This is probably caused by LINQ: it checks for the real change of the value (not always possibile as you can see…).

    You can avoid this check with the clause UpdateCheck=UpdateCheck.Never:

    [Column(Storage="_myColumn", DbType="VarBinary", UpdateCheck=UpdateCheck.Never)]
    public string myColumn
    {
    ...
    }
    

    in the LINQ mapping of the column

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a table with these columns: id | player1_name | player1_score | player2_name
I currently have a table which has these columns: id (INT) parent_id (INT) col0
I've got a table in which there are some columns with big text data.
I've got a mysql table of 'events' with columns for 'category' and 'visited'. There's
Got this: Table a ID RelatedBs 1 NULL 2 NULL Table b AID ID
I've got a table with the following columns: ID, sysid, x, y, z, timereceived
I've got a table with a few boolean columns like: IsProductionWorker, IsMaterialHandler, IsShopSupervisor, etc.
I've got a table with two columns(among others): id and created_in_variant and a stored
Imagine I have a Table full of Cars, with Columns Id,Title and Description. These
I have these 2 classes: @Entity @Table(name = S_MC_CC_CLIENTI) @Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name=COD_TIPOCLIENTE) @DiscriminatorValue(PF) public class

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.