In partial class move all using statements after namespace
Original code:
using System.Data.Linq; using System.Data.Linq.Mapping; using System.Reflection; namespace Test { partial class DataClassesDataContext { //... } }
New Code:
namespace Test { using System.Data.Linq; using System.Data.Linq.Mapping; using System.Reflection; partial class DataClassesDataContext { //... } }
Right click on the .dbml file and run “Run Custom Tool”.
Enjoy!