Video Screencast Help
Search Video Help Close Back
to help

Altiris DataAccessLayer Not Supporting Null List

Created: 08 Sep 2011 | 1 comment
sankara narayanan's picture
0 0 Votes
Login to vote

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

Comments 1 CommentJump to latest comment

sushrut sane's picture

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.

0
Login to vote
  • Actions