コード例 #1
0
 /// <summary>
 /// A shortcut for incremental provision
 /// Sets incremental provision mode with IncrementalProvisionConfig.AutoDetectSharePointPersistenceStorage = true
 /// Once done, reverts back to default provision mode
 /// Callback on IncrementalProvisionConfig makes it easy to configure IncrementalProvisionConfig instance
 /// </summary>
 public static void DeployWebModelIncrementally(this SSOMProvisionService modelHost,
                                                SPWeb web,
                                                ModelNode model,
                                                string incrementalModelId,
                                                Action <IncrementalProvisionConfig> config)
 {
     modelHost.DeployModelIncrementally(WebModelHost.FromWeb(web), model, incrementalModelId, config);
 }
コード例 #2
0
 /// <summary>
 /// A shortcut for incremental provision
 /// Sets incremental provision mode with IncrementalProvisionConfig.AutoDetectSharePointPersistenceStorage = true
 /// Once done, reverts back to default provision mode
 /// Callback on IncrementalProvisionConfig makes it easy to configure IncrementalProvisionConfig instance
 /// </summary>
 public static void DeploySiteModelIncrementally(this SSOMProvisionService modelHost,
                                                 SPSite site,
                                                 ModelNode model,
                                                 string incrementalModelId,
                                                 Action <IncrementalProvisionConfig> config)
 {
     modelHost.DeployModelIncrementally(SiteModelHost.FromSite(site), model, incrementalModelId);
 }