SiliconDream wrote:
hello DarkCloud,
thanks for answering.
i think this is the sql-statement, that nhibernate produces:
INSERT INTO users (Name, Password, EmailAddress, LastLogon, LogonId) VALUES (?, ?, ?, ?, ?)
the question is, why?
NHibernate uses prepared statements to interact with the database. You are looking at where the prepared statement is being generated, like so:
Code:
Building an IDbCommand object for the SqlString: INSERT INTO SAWS.WATERMETER_MODEL (MODELNO, SAWS_SIZE_CODE, SAWS_TYPE_CODE, SAWS_MFG_CODE, MFGKEY, WATERMETERTYPE_CODE, ID) VALUES (?, ?, ?, ?, ?, ?, ?)
If you look further down in the log file, you'll see where the actual insert takes place, like so:
Code:
INSERT INTO SAWS.WATERMETER_MODEL (MODELNO, SAWS_SIZE_CODE, SAWS_TYPE_CODE, SAWS_MFG_CODE, MFGKEY, WATERMETERTYPE_CODE, ID) VALUES (:p0, :p1, :p2, :p3, :p4, :p5, :p6); :p0 = '99-99-99', :p1 = '99', :p2 = '99', :p3 = '99', :p4 = '1326', :p5 = ' ', :p6 = '429'
Here you see there the actual insert takes place. This is the statement you would want to test directly against the DB. Does that help?