Is there a DataModule counterpart for .NET?

Oxygene on .NET, is there a counterpart like Delphi’s non-visual data module?

I think a Component class would be the closest thing.


You might want to study the MVVM (Model-View-ViewModel) pattern. This was the preferred pattern in Silverlight and can be used in WPF application (and even for web).

MVVM is a different way of viewing your application than was used in Delphi, but accomplishes the same type of “separation of concerns” that was introduced in Data Modules when they were created in Delphi. It takes a bit getting used to, but when I was doing Silverlight, it seemed perfect to me. The way development should have been done all along.

The ViewModel part can be created in its own completely separate assembly and reused in multiple applications.

It works GREAT with the binding used in Xaml.

Are you making a desktop app?

It has been a couple of years since I retired and I’m not sure if Visual Studio now has added some “Model” goodness for that part of the MVVM. There are (or at least used to be) some good tutorials for MVVM and Silverlight which was .net based.

The tutorials I used to really like were in Silverlight by Mike Taulty. He was usually straight to the point. Unfortunately, I’m not sure those videos are still around since Microsoft dropped Silverlight. John Papa also had a lot of good information.

Hope that helps.

… time passes …

Here is a video that isn’t really narrated, but shows the structure in code. It is FAST, so you may need to stop it occasionally to see what the guy did.