in the method i need set a dataset but i don´t know how i create it, this is the example of the method
private void CallCustShipAdapterPrePickedOrdersMethod(Erp.BO.CustShipPickedOrdersDataSet ds, out string vMessage)
{
try
{
// Declare and Initialize EpiDataView Variables
// Declare and create an instance of the Adapter.
CustShipAdapter adapterCustShip = new CustShipAdapter(this.oTrans);
adapterCustShip.BOConnect();
// Declare and Initialize Variables
// TODO: You may need to replace the default initialization with valid values as required for the BL method call.
// Call Adapter method
bool result = adapterCustShip.PrePickedOrders(ds, out vMessage);
// Cleanup Adapter Reference
adapterCustShip.Dispose();
} catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}
hey, check this thread out for this site and formatting code blocks. It helps everyone see what you are trying to do.
But to the question at hand,
I’m looking through some BO’s to find that dataset, and I can’t find it. I can’t find the CustShipPickedOrdersDataSet, or the PrePickedOrders BO. Hmmmm…
if I try this:
CustShipPickedOrdersDataSet cspDS = new CustShipPickedOrdersDataSet ();
this message error show:
----------errors and warnings------------
Error: CS0246 - line 425 (1260) - No se puede encontrar el tipo o el nombre de espacio de nombres ‘CustShipPickedOrdersDataSet’ (¿falta una directiva using o una referencia de ensamblado?)
si intento esto:
adapterCustShip = new CustShipAdapter (this.oTrans);
CustShipPickedOrdersDataSet ds = adapterCustShip.CustShipPickedOrdersDataSet ();
este mensaje de error muestra:
---------- errores y advertencias ------------
Error: CS0246 - línea 425 (1260) - No se puede encontrar el tipo o el nombre del espacio de nombres ‘CustShipPickedOrdersDataSet’ (¿No es una directiva usando una referencia de ensamblado?)