I have this
public int CityId { get; set; }
and
public int CityId;
If I use first - it works in EF code first while the second - doesn't. But if I definte {get; set;}
and do nothing else, what is the exact difference between a simple definition? I understand that I can add some additional/customized code to {get; set;}
layout, but doesn't it work exactly the same if without {get; set;}
?