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

  • Home
  • SEARCH
  • 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 8850917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:00:47+00:00 2026-06-14T13:00:47+00:00

So, my classes are auto-generated by EF: //—————————————————————————— // <auto-generated> // This code was

  • 0

So, my classes are auto-generated by EF:

//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Testje.Models
{
    using System;
    using System.Collections.Generic;

    public partial class Ploeg
    {
        public Ploeg()
        {
        }

        public int Id { get; set; }
        public string Naam { get; set; }
        public string Icon { get; set; }
    }
}

When one of the properties change, I’d like to do a notifypropertychange. Is this possible somehow without editing this generated class?

  • 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-06-14T13:00:48+00:00Added an answer on June 14, 2026 at 1:00 pm

    It would be possible, but I strongly suggest to not do this!
    Adding INotifyPropertyChanged in your model will lead to a
    bad separation of concerns.

    Use events to highlight that the model has changed.
    Have a look here to see how this works: MSDN on standard event pattern

    Or even better: MSDN cites Albahari Bros on the event pattern

    In your viewmodel, implement INotifyProperty changed.
    Let your ViewModel than listen to the events from your model, adapt the data
    and push it to your view through INotifyPropertyChanged

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

Sidebar

Related Questions

I have a .dbml file which of course contains the auto-generated classes based on
i have my auto-generated linq to sql classes, and i extend this class using
I am using Entity Framework 4.3.1, with auto-generated entities from the database. From this,
I'm using ASP.NET MVC RC2. I have a set of classes that were auto-generated
How can I share the auto-generated entity data model (generated object classes) amongst all
As title, can auto-generated Peer classes be deleted in Propel? I don't know what's
I'm attempting to implement a repository pattern with my poco objects auto generated from
I have an applicaton that contains some tables that are auto-generated from Grails domain
When I'm designing immutable objects, case classes are incredibly handy because of the auto-generated
I auto-generated some classes using xsd.exe for a project I am working on. I

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.