Hi,
I try to use the code bellow:
Public Shared ReadOnly NBR_DOORSProperty As PropertyInfo(Of Integer) = RegisterProperty(GetType(Integer), New PropertyInfo(Of Integer)("NBR_DOORS", "NBR_DOORS", -1))
Public Property NBR_DOORS() As Nullable(Of Integer)
Get
Return GetProperty(NBR_DOORSProperty)
End Get
Set(ByVal value As Nullable(Of Integer))
SetProperty(NBR_DOORSProperty, value, -1)
End Set
End Property
But in runtime I get the error: Index was outside the bounds of the array. in the line of code:
Return GetProperty(NBR_DOORSProperty)
Any idea pls, I m using CSLA 3.5 and VS2008
tutus:
Hi,
I try to use the code bellow:
Public Shared ReadOnly NBR_DOORSProperty As PropertyInfo(Of Integer) = RegisterProperty(GetType(Integer), New PropertyInfo(Of Integer)("NBR_DOORS", "NBR_DOORS", -1))
Public Property NBR_DOORS() As Nullable(Of Integer)
Get
Return GetProperty(NBR_DOORSProperty)
End Get
Set(ByVal value As Nullable(Of Integer))
SetProperty(NBR_DOORSProperty, value, -1)
End Set
End PropertyBut in runtime I get the error: Index was outside the bounds of the array. in the line of code:
Return GetProperty(NBR_DOORSProperty)
Any idea pls, I m using CSLA 3.5 and VS2008
<Disclaimer>I am not a vb.net guru. </Disclaimer>
However shouldn't your property declaration be something like:
Private Shared NBR_DOORSProperty As PropertyInfo(Of Integer) = RegisterProperty(Of Integer)(GetType(YOUR CLASS NAME), New PropertyInfo(Of Integer)("NBR_DOORS", "NBR_DOORS", -1))
'The normal use of RegisterProperty, you shouldn't be specifying the type argument at all... let Csla figure it out for you. "
It's weird, buit it would not let me use the overload with only New PropertyInfo(0 ... It tells me there is no overload that takes only thoses arguements. it seems that the CSLA version I m using (3.5) expects too arguements at least for the method: RegisterProperty . I m not sure what I m doing wrong :(
ajj3085:
Are you inheriting Csla.BusinessBase[T]? Might be worthwhile to upgrade to 3.7.
I appologize for the delay. I inherit from BusinessBase. We are using 3.5.0.0 version of CSLA. I don t think it s an option to upgrade the dll at this stage of the project just for this bug. We re pretty much in deployement phase, and this is a huge project :)
Thanks a lot for any clues about my issue :)
Copyright (c) Marimer LLC