This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT m.LoginName, m.Email, cmsPropertyData.dataDate AS LastLoginDate | |
FROM cmsPropertyType INNER JOIN | |
cmsPropertyData ON | |
cmsPropertyType.id = cmsPropertyData.propertytypeid RIGHT OUTER JOIN | |
cmsMember AS m ON cmsPropertyData.contentNodeId = m.nodeId | |
WHERE (cmsPropertyType.Alias = N'umbracoMemberLastLogin') AND (cmsPropertyData.dataDate IS NOT NULL) | |
ORDER BY LastLoginDate DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static string GetModelPropertyTypeAlias<TModel>(Expression<Func<TModel, object>> selector) | |
where TModel : PublishedElementModel | |
{ | |
Expression body = selector.Body; | |
// Unwrap conversions, if any | |
if (body is UnaryExpression unaryExpression && unaryExpression.NodeType == ExpressionType.Convert) | |
body = unaryExpression.Operand; | |
if (!(body is MemberExpression memberExpression)) |
OlderNewer