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

The Archive Base Latest Questions

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

I have to implement soft delete using entitty framework. My DB tables have a

  • 0

I have to implement soft delete using entitty framework.

  • My DB tables have a bit column IsDeleted.
  • Corresponding Entities also have IsDeleted field.
  • When a user deletes a child entity, IsDeleted in Set to true for that child object and gets persisted well.
  • While loading the entity-object graph, I want to ensure that all the relevant entities get loaded with a condition IsDeleted = false.
  • It tried using help from the following link, but I am getting lot of error : handling-logical-delete-with-entity-framework-4.

Here is the error I get for each entity :

error 3032: Problem in mapping fragments starting at line 38:Condition member with a condition other than ‘IsNull=False’ is mapped. Either remove the condition on EntityHavingClause.IsDeleted or remove it from the mapping.

Q: Can anyone please tell where I am going wrong and what would be the simplest way to load all child entitties whose IsDelete = false?

  • 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-28T13:01:10+00:00Added an answer on May 28, 2026 at 1:01 pm

    You mapped EntityHavingClause.IsDeleted as a property and as a condition. You cannot do both.

    When you follow the example you linked to, you should not need the property mapping.

    Edit:

    As you need both, the property and the condition, probably the best way to go is add a calculated column to your database table that just displays the value of IsDeleted (if you can change the schema, that is). Then map the condition against the calculated column.

    I think that is easier than trying to hack EF to map the same column twice (if it can be done at all).

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

Sidebar

Related Questions

I would like to implement a soft-delete scheme for a number of entities in
Working on a project at the moment and we have to implement soft deletion
I have seen the following demo with frozen column and filter toolbar here: http://www.ok-soft-gmbh.com/jqGrid/FrozenColumns.htm
I have a computing map (with soft values ) that I am using to
i have implement binary search tree in c++ #include <iostream> #include <cstdlib> using namespace
I have implement a small web service using .net 3.5. I have used linq
I have implement Wikitude SDK and I manage to initialize using this code: -(IBAction)launchAR:(id)sender{
I have implement GridView Row Editing feature in my .net application using <asp:CommandField .
I have an Entity Framework 4 design that allows referenced tables to be deleted
I have to implement a digital envelope using AES and RSA, but I am

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.