|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2009-04-16 15:13:09
Posts: 1,
Visits: 11
|
|
Create a ECO Model for Prism, at the Model designer click generate code for the sample Class1 or create any class, the generated class declare likes :
Articles = public partial class(Eco.ObjectImplementation.ILoopBack2)
But this actually generated likes:
Articles = public partial class(Eco.ObjectImplementation.ILoopBack2, INotifyPropertyChanged)
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2 days ago @ 14:46:03
Posts: 119,
Visits: 1 543
|
|
Are you the author of the "Delphi MDA/DDA Programing -- Using ECOIII" book?
if yes, I am glad to see you here!
Do you upgrade this book for ECO V? I often read this book.
thanks!

|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 05:16:23
Posts: 454,
Visits: 1 036
|
|
If I regenerate the code, I don't get an INotifyPropertyChanged. Are you asking if it SHOULD generate it?
/mtiede
Environment:
Windows 7 Ultimate 64 bit
Delphi 6
Rad Studio 2010 Enterprise with Prism 2011
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228,
Visits: 1 373
|
|
There was a lack of fuinctionality in the latest public release of Prism. In the codedom, it was impossible for us to generate implementation for events. This has been fixed in later betas. Until this has been publically released, the C# codegen will add "INotifyPropertyChanged" to the generated code, but the Prism codegen will not.
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 05:16:23
Posts: 454,
Visits: 1 036
|
|
Jonas Hogstrom (2009-04-19) There was a lack of fuinctionality in the latest public release of Prism. In the codedom, it was impossible for us to generate implementation for events. This has been fixed in later betas. Until this has been publically released, the C# codegen will add "INotifyPropertyChanged" to the generated code, but the Prism codegen will not.
I would think that would break something on the Prism side, yes?
/mtiede
Environment:
Windows 7 Ultimate 64 bit
Delphi 6
Rad Studio 2010 Enterprise with Prism 2011
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228,
Visits: 1 373
|
|
I'm not sure what you mean. The consequence of not generating the INotifyPropertyChanged interface implementation in Prism is that Prism users will have less functionality, but it doesn't break anything. You can implement the interface on the classes you need by simply adding the required bits in the MyClass.pas-file.
When the next version of Prism ships (should be rather soon now) we will activate the generation of INotifyPropertyChanged (and yes, you will have to upgrade your prism-version).
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 05:16:23
Posts: 454,
Visits: 1 036
|
|
If the INotifyPropertyChanged doesn't get generated, doesn't that mean things like DataGrids wouldn't get notified and code that depended on the notification wouldn't work?
Anyway, if it is fixed soon, it will be MORE than quick enough for me. I am slogging through all kinds of learning (or not learning) Eco, WPF, Prism, .Net, etc.
/mtiede
Environment:
Windows 7 Ultimate 64 bit
Delphi 6
Rad Studio 2010 Enterprise with Prism 2011
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228,
Visits: 1 373
|
|
INotifyPropertyChanged is primarily used in WPF, when you bind the objects directly to the grid. The Prism fix will be in the May release of Prism. We will activate the codegen as soon as it is out.
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 05:16:23
Posts: 454,
Visits: 1 036
|
|
Thanks.
/mtiede
Environment:
Windows 7 Ultimate 64 bit
Delphi 6
Rad Studio 2010 Enterprise with Prism 2011
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 05:16:23
Posts: 454,
Visits: 1 036
|
|
Jonas Hogstrom (2009-04-28) INotifyPropertyChanged is primarily used in WPF, when you bind the objects directly to the grid. The Prism fix will be in the May release of Prism. We will activate the codegen as soon as it is out.
It's out.
/mtiede
Environment:
Windows 7 Ultimate 64 bit
Delphi 6
Rad Studio 2010 Enterprise with Prism 2011
|
|