문제

데이터를 저장하는 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