Symantec Developer Group

 View Only
  • 1.  Altiris DataAccessLayer Not Supporting Null List

    Posted Sep 09, 2011 02:15 AM

    I was trying to use altiris dataaccesslayer with a stored procedure taking delimited string sample call given below

    [ProcedureName("someprocedurename")]

    [CallingConventionByDelimitedList(1000)]

    public abstract void SampleMethod(Guid entryId, DateTime logDateTime,List<string> arguments)

     The above works as long as there is atleast one value in list, in some case i will not be having any value for the argument so i tried passing null for the last argument. Altiris framework never made call to my storedprocedure in DB and no record added.

     

    Is there any bug with passing null for List<> arguments? i had created a work around, but it is not good coding standard. Please advise me how to go about implementing the above without any work around.

     

    Regards

    L. Sankara Narayanan



  • 2.  RE: Altiris DataAccessLayer Not Supporting Null List

    Posted Sep 19, 2011 09:29 AM

    Hi,

    I think you have to change code logic or update the stored procedure to work with null list. Please go through the following links which may help you.

     

    http://ali-mydev.altiris.com/Wiki/default.aspx/Altiris.NSCore/DataAccessLayer.html

    http://ali-mydev.altiris.com/Wiki/default.aspx/Altiris.NSCore/CallingConventionByDelimitedList.html

     

    Thank you.