LINQ to SQL Designer Bug

后端 未结 3 1349
不思量自难忘°
不思量自难忘° 2020-12-31 17:06

Every time that I change a value in the designer after saving it, the .designer.cs file will be deleted.

Can anyone tell me how can I fix this problem?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 18:04

    Don't place your own code in the designer file, instead use a separate file leveraging the partial classes concept.

提交回复
热议问题