All the generated classes are generated using the partial keyword, this makes it possible to add properties, methods and even interfaces to the generated classes without changing the generated .cs file.
Have a look at Partial Classes and Methods (C# Programming Guide).