0

フィールドに追加しようとしていますが、次のことを試みると、既存のデータ (Update.Comments) が追加されるのではなく、followUpComments で上書きされます。

どうすれば追加できますか?

    using (var context = new DBContext()){

        var Update = (from p in context.Prospects where p.id == recordIdToUpdate select p).Single();

        Update.Comments = Update.Comments + "\n\n" +followUpComments;

        context.SaveChanges();

    }
4

1 に答える 1

0

+ 演算子の代わりに String.Concat を使用する

于 2013-07-08T15:11:35.573 に答える