alireza abedi

alireza abedi

  • NA
  • 3
  • 739

when i add new column in my sql server 2014 Table..Visual c#

Apr 22 2018 11:35 AM
I have a problem with my C# project in Visual Studio 2017. When I'm adding a new column to my SQL server 2014 table I can't find it in VS 2017 data grid and other you can check my 3 picture:
 
 
 
My code in Student.cs class
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using System.Threading.Tasks;  
  6. namespace CURD  
  7. {  
  8. public class Student  
  9. {  
  10. public int StudentID { getset; }  
  11. public string FullName { getset; }  
  12. public string mcbRozetavalod { getset; }  
  13. public string mcbMahetavalod { getset; }  
  14. public string mcbTarikheTavalod { getset; }  
  15. public string Email { getset; }  
  16. public string Address { getset; }  
  17. public string ImageUrl { getset; }  
  18. public bool Gender { getset;  
  19. }  
  20. }  
  21. }  
And my code in EntityState.cs class
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq; using System.Text;  
  4. using System.Threading.Tasks;  
  5. namespace CURD  
  6. {  
  7. public enum EntityState  
  8. {  
  9. Unchanged,  
  10. Added,  
  11. Changed,  
  12. Deleted  
  13. }  
  14. }

Answers (2)