2

Can I use "using System.ComponentModel.DataAnnotations;" for console application? or it is only for ASP.Net and MVC model.

Cleptus
  • 3,446
  • 4
  • 28
  • 34
imh4r5h
  • 21
  • 1
  • 3
    Yes you can, Please refere the following reference https://stackoverflow.com/questions/6854759/how-to-use-system-componentmodel-dataannotations-in-wpf-or-winforms-application – Alpesh Vaghela Jan 08 '20 at 06:06
  • 1
    Yes. you can. There is not limitation. This is not apart of any mvc.net related NUget. – Ravi Kumar Kasim Jan 08 '20 at 12:55

0 Answers0