Razor equivalent to the Token [Content:EntityId] syntax

Jul 28, 2014 at 10:07 PM
Which is the razor-equivalent to the Tokensyntax [Content:EntityId]?

@Content.EntityId resp. @List[0].Content.EntityId does not work for me.

thank you
Jul 28, 2014 at 10:27 PM
Mm the first one should work

here is a peice of my working code

@foreach (var e in List)
{
    var Content = e.Content;
    var cid = Content.EntityId;
etc
Marked as answer by Collective on 7/28/2014 at 2:47 PM
Jul 28, 2014 at 10:47 PM
Strange enough...it works ;).

thank you very much nokiko. Guess i used the term 'EntityID' in the template and just 'accidently' wrote the right one here in my question.

thank you