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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:48:55+00:00 2026-05-18T11:48:55+00:00

I have a Download Entity in my EF Data Model. Two of its properties,

  • 0

I have a Download Entity in my EF Data Model. Two of its properties, Size and BytesDownloaded, compute to give me the Progress property I’ve created in the partial class:

partial class Download
{
    public int Progress
    {
        get
        {
            if (!Size.HasValue || Size.Value == 0) return 0;
            return Convert.ToInt32(Math.Floor(100.0 * ((double)BytesDownloaded / (double)Size)));
        }
    }
}

In my WPF UI I have:

<DataGridTemplateColumn x:Name="progressColumn" Header="Progress"  Width="*">
    <DataGridTemplateColumn.CellTemplate>
        <DataTemplate>
            <ProgressBar Value="{Binding Path=Progress, Mode=OneWay}" Maximum="100" />
       </DataTemplate>
    </DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

Since Progress is not part of the Entity Model (edmx), I have to notify the UI that it should update the ProgressBar. I thought I could do this like so:

partial void OnBytesDownloadedChanging(long value)
{
    ReportPropertyChanging("Progress");
}
partial void OnBytesDownloadedChanged()
{
    ReportPropertyChanged("Progress");
} 

This compiles fine, but when I run the app and OnBytesDownloadedChanging/Changed are called, I get this exception on my call to ReportPropertyChanging/Changed:

The property ‘Progress’ does not have
a valid entity mapping on the entity
object. For more information, see the
Entity Framework documentation.

I understand what the error message is saying, but I don’t understand what I can do to actually accomplish my goal.

PS – What specific “documentation” are they even referring to? Sigh! If they’re going to imply there is documentation for this error, why don’t they just link me to the documentation instead of telling me to [pointlessly] try and find it?

  • 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-18T11:48:56+00:00Added an answer on May 18, 2026 at 11:48 am

    Use OnPropertyChanged/Changing instead of ReportPropertyChanged/Changing. The On* methods only raise the event, whereas the Report* methods also mark the property as modified for change tracking.

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

Sidebar

Related Questions

I have some download implementation which allows me to export all data from a
I have a 'College' model data. My str_loader.py is: class MySQLExporter(bulkloader.Exporter): def output_entities(self, entity_generator):
I have two classes: News : /** @Entity @Table(name=news) */ class News { /**
I have created a Entity Framework mapping based on the book Microsoft Entity Framework
I have two classes: User : /** @Entity @Table(name=users) */ class User { /**
Right now I have file upload/download through Entity Framework working but I see an
Possible Duplicate: Merge Two Video files in iPhone Application I have download 40mb video
I have download the new Bing API C# file and added it to my
I have download and installed Visual Studio 2010 RC and I want to develop
I have download entire Eclipse Helios/Indigo version Source Code. Now I want to work

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.