Is it safe to reset table.column.Readonly attribute for updates?

Is it safe to reset table.column.Readonly attribute for updates?

am 17.04.2008 16:04:52 von bogdan

Hi,

I have a table adapter whose main query returns columns from multiple
tables. The query calls a stored procedure which uses JOINs (or correlated
subqueries - I get the same results in both cases). I have another stored
proc that is used for updates and takes arguments representing values for
columns returned by the main query. My initial problem was that columns of
tables used in JOINs (or subqueries) had their Readonly attribute set and
therefore preventing me from changing their values in my BLL object. I
decided to try to reset the Readonly attributes before changing the values
and it seemed to work. Since I'm quite new to asp.net I don't feel quite
comfortable with what I have done. I'm afraid that this might get me into
trouble later on. I have not been able to locate any docs/examples that
would deal with cases like this one.

I'd appreciate _any_ input.

Thanks,
Bogdan