ソリューションの再デプロイ解除機能アクティベーションでリストを作成します

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/90199

  •  10-12-2019
  •  | 
  •  

質問

私はいくつかのデータを保存するSharePointサイトにリストを持っています。そのリストは機能有効化プロセス月前に作成されました。

今、私は新しい改善を創造しました - 2つの新しい列をコードに追加しました(私の機能起動方法のリスト作成プロセス内の内部)。

私の質問はここに来る:私は私の解決策を再展開し、リスト内のデータを失うことなく私の機能を再起動することができますか?

それをする最善の方法は何ですか?

役に立ちましたか?

解決

For such cases, we usually have a Code Upgrader feature which adds new columns to the list, set default values and so on..

You need to grab the existing list and add the new columns, it should work fine.. And you just need to activate this Code Upgrader Feature

他のヒント

Instead of having a completely new feature, as Arsalan proposes, you can use the Feature Upgrade framework (which is actually mentioned in a comment by tyshock above).

Basically, what you have to do is using the Feature Version attribute, and then implement code to handle the FeatureUpgrading event in a Feature Event Receiver. See best practices here

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top