How is Sequence being generated from EasyObjects Oracle Stored Procedure template?
None of my sql files generated are using sequence at all?
protected override DBCommandWrapper GetInsertCommand(CommandType commandType)
{
DBCommandWrapper dbCommandWrapper;
// Create the Database object, using the default database service. The
// default database service is determined through configuration.
Database db = GetDatabase();
switch(commandType)
{
case CommandType.StoredProcedure:
string sqlCommand = this.SchemaStoredProcedureWithSeparator + \"daab_AddTESTERTYPE\";
dbCommandWrapper = db.GetStoredProcCommandWrapper(sqlCommand);
dbCommandWrapper.AddParameter(\"TESTERTYPEID\", DbType.Int32, 0, ParameterDirection.Output, true, 0, 0, \"TESTERTYPEID\", DataRowVersion.Default, Convert.DBNull);
CreateParameters(dbCommandWrapper);
return dbCommandWrapper;
MyRecord rec = new MyRecord();
rec.Remarks = \"I am new.\";
rec.Save();
int newRecID = rec.RecID;//returns 0.???
Return to EasyObjects.NET (Microsoft Enterprise Library)
Users browsing this forum: Google [Bot] and 0 guests