Csla.PropertyInfo and an Array of Fields

Csla.PropertyInfo and an Array of Fields

Old forum URL: forums.lhotka.net/forums/t/6357.aspx


ward0093 posted on Friday, February 06, 2009

I have the following Property in my BO (shown below)... but now i need to duplicate the field for the past 100 days... how do i code an "Array" of fields values using the new PropertyInfo system for setting up Shared Fields and Properties?

Protected Shared AverageTotalVolumeTradedForLast01DaysProperty As Csla.PropertyInfo(Of Decimal) = _

RegisterProperty(New Csla.PropertyInfo(Of Decimal)("AverageTotalVolumeTradedForLast01Days", "Average Total Volume Traded for Last 01 Days", Decimal.Zero))

Public ReadOnly Property AverageTotalVolumeTradedForLast01Days() As Decimal

Get

Return GetProperty(Of Decimal)(AverageTotalVolumeTradedForLast01DaysProperty)

End Get

End Property

 

Thanks,
ward0093

ajj3085 replied on Friday, February 06, 2009

Sounds like you'd need a code generator.

Copyright (c) Marimer LLC