This question is locked. New answers and comments are not allowed.
I have a schema in Oracle that has a CreatedDate field with a default value of SYSDATE. When I build my model and save a record without specifying a value for the CreatedDate field, the default value is not used. I worked around this by setting the Kind to PersistReadOnly, but then I can never override a default value. I would think that the model builder would pick up that there is a default value setup in the DB and use it to initialize the value but let me set it explicitly if I need or want to. For instance, I've got a field called Valid that defaults to 'X' if validation hasn't been performed, then in my code I can set it to 'Y' or 'N' later when I run my validation routine. Would that situation have a workaround where the initial save would write the 'X' to the table and later allow me to edit that field?
Oracle 11g, .Net 4.0, VS 2010, ORM 2012.1.301.2.
Thanks in advance,
Corey
Oracle 11g, .Net 4.0, VS 2010, ORM 2012.1.301.2.
Thanks in advance,
Corey