Hi Andrés,
The new
CSLA.NET 4.0 boosted my interest in CslaGen. This also means
I'm having a lot of questions due to the lack of documentation.
The question for today concerns DatabaseAccess settings for
ValueProperty. There are 5 options that refer to a given property
being read or written to the database columns. They have no relation
to the property being used as a parameter of a stored procedure (you
need to pass the object ID in order to fetch the object but you really
don't need or even want to receive the object ID as part of our select
statement). So this setting only affects the Create, Read, Update and
not Delete operation since the later doesn't exchange (gets or sets)
data with database columns.
Testing was inconclusive In spite of setting the ID property to
CreateOnly, it did show up in in the Get stored procedure as the first
item of the SELECT statement. Obviously this isn't what CreateOnly
should mean...
So I came up with this scenario:
ReadWrite CRU
ReadOnly -R-
WriteOnly C-U
UpdateOnly --U
CreateOnly C--
Note - The capital letters signal the CRUD operations where the
property will be part.
Is this correct?