オブジェクトをコレクションに追加しようとしていますが、レコードが存在する場合とレコードが存在しない場合の更新方法を知りたいです。
私はこれに取り組むつもりです。
public void AssignProductSetting(CategoryType catType, int catId, int freeCount)
{
this.CustomSettings.Add(new ProductCustomization()
{
CategoryID = catId,
CustomizationType = catType,
DefaultFreeCount = freeCount,
ProductID = this.ProductID
});
}