Esempio n. 1
0
 public static int NextSequenceValue(string sequence)
 {
     try
     {
         return(Convert.ToInt32(SqlText.ExecuteScalar(String.Format("select {0}.nextval from dual", sequence))));
     }
     catch (Exception)
     {
         return(0);
     }
 }
Esempio n. 2
0
 public static object ExecuteScalar(string text, params System.Object[] args)
 {
     using (SqlText sel = Create(text, args))
         return(sel.ExecuteScalar());
 }