Exemplo n.º 1
0
        public DTO.DBRequisition SaveDB(DTO.DBRequisition requisition)
        {
            Requisition result;

            requisition.isValidate();

            using (var transaction = Connection.BeginTransaction())
            {
                try
                {
                    result = requisitionService.Save(new DBRequisition(requisition));
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
            }

            return(new DTO.DBRequisition(result));
        }
Exemplo n.º 2
0
 public DBRequisition(DTO.DBRequisition requisition)
     : base(requisition)
 {
     this.DataBaseName     = requisition.DataBaseName;
     this.LinkedServerName = requisition.LinkedServerName;
 }