Beispiel #1
0
        public static int InsertNow(object obj, bool returnMax)
        {
            int retorno = 0;

            if (returnMax)
            {
                retorno = Convert.ToInt32(DAO.ExecuteScalar(Factory.getInsertCommand(obj, returnMax)));
            }
            else
            {
                DAO.Execute(Factory.getInsertCommand(obj, returnMax));
            }

            return(retorno);
        }
Beispiel #2
0
 public object ExecuteScalar()
 {
     return(DAO.ExecuteScalar(GetCommand()));
 }