Im using vs2008 and Im also using the autogenerated object model / entity classes from linq to sql (.dbml).
Is it possible / recommended to change the autogenerated .cs file. Eg change the behaviour of Equals (in the partical class Courses)?
I do know that Equals should be reflexive, symmetric, transitive, consistent and ‘Equals(null)== false ‘
It’s not suggested to change the generated file directly as it will be regenerated and overwrite your changes if you edit the DBML. The generated classes will be declared as
partialso you can change them by creating another file and declaring apartialclass with the same name and adding your changes there.