EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

View model properties attribute adjustment. #61

Closed gdlcf88 closed 4 years ago

gdlcf88 commented 4 years ago

Now the attribute is DisplayName:

    public class CreateEditTodoViewModel
    {
        [DisplayName("TodoName")]
        public string Name { get; set; }
    }

To be more flexible, I think Display attribute is better:

    public class CreateEditTodoViewModel
    {
        [Display(Name = "TodoName")]
        public string Name { get; set; }
    }