Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> Custom/Extended properties with inotifypropertychanged
 

Pages: 1
LLBLGen Pro Runtime Framework
Custom/Extended properties with inotifypropertychanged
Page:1/1 

  Print all messages in this thread  
Poster Message
OSSistemes
User



Location:

Joined on:
20-Nov-2019 21:55:31
Posted:
9 posts
# Posted on: 05-Dec-2019 10:10:47.  
Hi,

Finally we buyed the software, very nice, and a lot to learn, but will be funny!!

Here of firts little problem.

We need to create some properties on the Entity that not mapped on database. So we create a partial class and define it.

Code:


public partial class TiquetsLinEntity
    {

        private bool _selected;

    
        public bool Selected
        {
            get { return _selected; }
            set { _selected = value;

                OnPropertyChanged("Selected");
            
            }
        }

    }



We subscribe to event "EntityContentsChanged" and when a propierty/fields change, the event raise, but if we modify our "custom" propierty the event don't raise.

I dont know if this is the corret way to get this. We look on llblgen designer if its possible to create a field without mapping, but we don't find it.

Any help
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14569 posts
# Posted on: 06-Dec-2019 05:56:12.  
Either listen to the onPropertyChaned() because that's the event you raised in your custom property Set.

Or raise OnEntityContentsChanged();

Code:
public partial class TiquetsLinEntity
    {

        private bool _selected;

    
        public bool Selected
        {
            get { return _selected; }
            set { _selected = value;

                OnPropertyChanged("Selected");
                OnEntityContentsChanged();            
            }
        }

    }



  Top
OSSistemes
User



Location:

Joined on:
20-Nov-2019 21:55:31
Posted:
9 posts
# Posted on: 10-Dec-2019 09:27:51.  
Thanks!! All ok now!
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.