As an FYI, that is the correct way to achieve what you are after and the reason is this:
The MemberService is interacting with the Database, and the Membership Helper (which is Umbraco.Member) is interacting with the Published Cache.
The other thing to note about it is that the "Critical" properties on a member, I don't believe, are available via the strongly typed member because they related to an Identity not your custom profile/properties bits.
Getting a Strongly Typed Umbraco Member
I have added a few extra properties to my umbraco member definition and I am using the Models Builder.
The model generation is working perfectly.
But how do I get a strongly typed version of the Member.
I have tried.
Managed to solve it.... like this:
test is now a strongly typed Member with all the properties.
Hi Ayo,
As an FYI, that is the correct way to achieve what you are after and the reason is this:
The MemberService is interacting with the Database, and the Membership Helper (which is Umbraco.Member) is interacting with the Published Cache.
The other thing to note about it is that the "Critical" properties on a member, I don't believe, are available via the strongly typed member because they related to an Identity not your custom profile/properties bits.
Cheers
Nik
is working on a reply...