Example #1
0
 /**
  *
  * SPWeb model data population example
  * The model example with data feeding nodes only
  *
  */
 public static WebModelNode WebDemoDataModel()
 {
     return(SPMeta2Model.NewWebModel(Web =>
     {
         Web
         .AddHostList(ListsInfo.Contacts(), List =>
         {
             List
             .ImportContactsItems();
             ;
         })
         .AddHostList(ListsInfo.Functions(), List =>
         {
             List
             .ImportFunctionsItems()
             ;
         })
         .AddHostList(ListsInfo.SubFunctions(), List =>
         {
             List
             .ImportSubFunctionsItems()
             ;
         })
         ;
     }));
 }