MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

relearning CSLA #196

Open Chicagoan2016 opened 8 years ago

Chicagoan2016 commented 8 years ago

Hi, I have been working with csla for almost ten years on and off, last time being in 2014. i had read the using csla 4 ebooks and in the last few days went over the basic concepts again, my last projects wasn't a big project, so I coded csla objects using code snippets that came with csla samples. Is there any advantage in buying a codesmith license? I downloaded the trial version and it appears they don't have templates for 'encapsulated invocation' model.

any thoughts/suggestion on what to use in generating csla business objects?

Thanks Chicagoan

rockfordlhotka commented 8 years ago

For my part I've always advocated using snippets over using a generator. I realize that generators are useful for the "boring" maintenance functions apps often have, but they are useless for the really important screens, which is where you'll spend most of your time anyway.

(useless because important screens/pages require object models that don't match database tables directly, so generating objects based on tables is counter-productive)

Chicagoan2016 commented 8 years ago

Thanks Rocky, I appreciate your help.

something like this looked promising but I guess the author never got a chance to complete it. https://visualstudiogallery.msdn.microsoft.com/7b5d579d-386f-4395-af17-1687daab4ea1

rockfordlhotka commented 8 years ago

Here's a somewhat dated list of generators: http://lhotka.net/cslanet/codegen.aspx

My guess is that the most current is the one @tfreitasleal maintains.

Chicagoan2016 commented 8 years ago

I looked at @tfreitasleal and like it so far, although its not generating the code exactly the same way as in csla samples but its close compared to other code generators.

for some reason cslaforkgen is generating partial classes like Categories.generated.cs ( against Northwind database) :) I sent Tiago a couple of emails and he has been very helpful