Replies: 2 comments
-
Not sure if these "if" statement checks are needed or not in this version of CSLA |
Beta Was this translation helpful? Give feedback.
0 replies
-
Found the LazyGetProperty. Guess I should be using that one |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm upgrading from 3.8 to 5.5.3 and I'm not sure what replace this code with
public SubDivisions SubDivisions { get { if (!FieldManager.FieldExists(SubDivisionsProperty)) { LoadProperty<SubDivisions>(SubDivisionsProperty, SubDivisions.GetSubDivisions(DivisionId)); } return GetProperty<SubDivisions>(SubDivisionsProperty); } set { SetProperty<SubDivisions>(SubDivisionsProperty, value); } }
Also how to rewrite this?
public BedInfoList BedList { get { if (_bedInfoList == null) { _bedInfoList = BedInfoList.GetByRoomId(RoomId, RoomName); } return GetProperty(GroupListProperty, _bedInfoList); } }
as I don't seem to be able to have these if checks within the getter.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions