You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my content type property aliases is called 'abstract'. While potentially short sighted this makes sense from an article perspective but as you're using the alias when building the POCOs I'm getting an error when trying to connect to my website path.
Exception - Cannot compile typed context: Member modifier 'abstract' must precede the member type and name
I can see where to escape the member name in your solution but I've no idea where I'll then have to unescape it.
No worries about fixing this for me, as I'll take another approach, but I thought I'd log the issue.
The text was updated successfully, but these errors were encountered:
Cool, thx for logging it. I haven't used this codebase for a while now so if you can point me to where you'd escape and can see if it'd be easy to fix everywhere.
While I was going to escape it in
UmbracoLinqPad.Gateway.Compilers.ContentItemsCompiler.BuildClass() on line 51
Initially I was hackily just going to skip those values: if (new[] { "abstract", "public", "protected", "internal", "private", "sealed", "virtual" }.Any(s => s == property)) continue;
but prefixing it with 3 underscores might be better
One of my content type property aliases is called 'abstract'. While potentially short sighted this makes sense from an article perspective but as you're using the alias when building the POCOs I'm getting an error when trying to connect to my website path.
Exception - Cannot compile typed context: Member modifier 'abstract' must precede the member type and name
I can see where to escape the member name in your solution but I've no idea where I'll then have to unescape it.
No worries about fixing this for me, as I'll take another approach, but I thought I'd log the issue.
The text was updated successfully, but these errors were encountered: