ECO 5.0.0.3999 does not generate INotifyPropertyChanged declaration for Prism ECO Model
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



ECO 5.0.0.3999 does not generate... Expand / Collapse
Author
Message
Posted 2009-04-16 10:55:22
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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)


Post #3053
Posted 2009-04-16 13:12:57
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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!


 

Post #3055
Posted 2009-04-16 14:48:46


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3057
Posted 2009-04-19 23:52:02
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #3090
Posted 2009-04-20 22:14:31


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3103
Posted 2009-04-28 11:19:57
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #3148
Posted 2009-04-28 20:58:14


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3161
Posted 2009-04-28 23:23:16
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #3165
Posted 2009-04-30 01:35:05


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3169
Posted 2009-05-21 08:47:46


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #3398
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 4:16

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,203. 6 queries. Compression Disabled.