Hi just a minor question/suggestion about the snippets in the 4.0 release.
I cannot seem to find a normal property snippet where get/set are public (e.g. Name property in Project in the PTracker sample). Am I missing something? Closes I could find was the "Define a readonly Csla property" snippet and then manually deleting the private keyword in the setter.
Also, the "Insert Data Access region" snippet does not appear to be adding a DataPortal.Create method. Was that intentional?
I know I can modify the snippets but would have thought these should already be there :-)
The "cslaprop" snippet is a standard read-write property - I use it all the time. I'm not sure what it is called in terms of a file name - but the keyboard shortcut is "cslaprop".
The DataPortal_Create() method is intentionally not in the data access snippet, because it is now rare to override/overload that method. The base class includes a standard implementation that works for most common scenarios.
The problem with the C# clsaprop snippet is that it is declared as "vb" instead of "CSharp" and also has the VB comments. So VS isn't including that cslaprop snippet.
Ahh, I see - that's a bug.
In fact, I think that snuck in there very late - so if you go back to RC0 or Beta 3 you should get the right version. I was updating the VB snippets late in the process, and must have somehow hit ctl-S when I shouldn't have...
I'll add this to the bug list to get fixed in 4.0.1.
Copyright (c) Marimer LLC