Scenario:
CREATE TABLE BATCH
(
BATCH_ID NUMBER(10) PRIMARY KEY,
-- there is a corresponding sequence object to generate BATCH_ID values
BATCH_DATE DATE DEFAULT SYSDATE NOT NULL
);
The following code does not get a batch record inserted to the table unless I uncomment the second line.
BatchEntity batch = new BatchEntity();
// batch.BatchDate = DateTime.Now;
batch.Save();
Environment:
Oracle (ODP.NET 9.2)
LLBLGen 1.0.2005.1 February 9, 2006
SelfServicing, two class scenario for VS.NET 2003