简体   繁体   English

如何制作可以迭代的ApplicationUser类型的列表?

[英]How to make a list of ApplicationUser type that could be iterated over?

I want to make a list or IEnumerable (any iterable list) of ApplicationUser type as a prop. 我想创建一个列表或IEnumerable(任何可迭代列表)的ApplicationUser类型作为道具。 I want to make this list of of ApplicationUser type so that i can iterate over it in a view. 我想制作此ApplicationUser类型的列表,以便可以在视图中对其进行迭代。 How can this be done? 如何才能做到这一点?

public class FollowingsViewModel
{
    public List <ApplicationUser> { get; set; }
}

That's what I am trying to do.. but this gives a syntax error. 那就是我想要做的..但是这给出了一个语法错误。 Any help is appreciated. 任何帮助表示赞赏。

public List <ApplicationUser> applicationUsers { get; set; }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM