Query about ViewModel and Factory Usage in ProyectTracker Project with Csla #4071
Unanswered
ecaldentey
asked this question in
Questions
Replies: 1 comment
-
The csla/Source/Csla.Blazor/ViewModel.cs Line 194 in 56fb683 If your factory method of your factory class returns a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Rocky,
In the ProyectTracker project, you use an object from the Csla.Blazor.ViewModel class to wrap the Csla BusinessClass objects, and through the ViewModel objects, you interact with the UI components. To establish the connection, you use the following syntax:
Since I have all my classes written using Criteria objects and go through my own Factory class of the BusinessClass, I use the following syntax to interact with my BusinessClass:
Therefore, is it possible to load the ViewModel object directly with a BusinessClass (Root, EditList, etc.) and not use a factory?
In this same case, if the Razor page is created on the server-side, does the technique of detecting the rendering state that you use on the EditProject page make sense?
Any help will be appreciated, thank you very much.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions