// Methods
		private static void _Export(Uri siteUrl, Guid listId, string exportLocation)
		{
            using (Microsoft.SharePoint.SPSite site = new Microsoft.SharePoint.SPSite(siteUrl.ToString()))
      {
          using (Microsoft.SharePoint.SPWeb web = site.OpenWeb())
        {
          ExportListSchema(listId, exportLocation, web);
          ExportListFiles(listId, exportLocation, web);
          UpdateContentTypes(listId, exportLocation, web);
          UpdateSummaryView(exportLocation);
          CommentOutExportUnsupportedFields(exportLocation);
          UpdateListSchema(listId, exportLocation, web);
          ApplyFixes(exportLocation);
        }
      }
		}
 // Methods
 private static void _Export(Uri siteUrl, Guid listId, string exportLocation)
 {
     using (Microsoft.SharePoint.SPSite site = new Microsoft.SharePoint.SPSite(siteUrl.ToString()))
     {
         using (Microsoft.SharePoint.SPWeb web = site.OpenWeb())
         {
             ExportListSchema(listId, exportLocation, web);
             ExportListFiles(listId, exportLocation, web);
             UpdateContentTypes(listId, exportLocation, web);
             UpdateSummaryView(exportLocation);
             CommentOutExportUnsupportedFields(exportLocation);
             UpdateListSchema(listId, exportLocation, web);
             ApplyFixes(exportLocation);
         }
     }
 }
Esempio n. 3
0
        public void Run(Microsoft.SharePoint.SPSite site, TConstructorArg constructorArg)
        {
            var shimSite = new ShimSPSite(site);

            if (Args != null)
            {
                FarmSpSiteSubstitute.Sites[Args].Shim = shimSite;
                foreach (var action in FarmSpSiteSubstitute.Sites[Args].Actions)
                {
                    action.Invoke(shimSite);
                }
            }
            else
            {
                ConstructorArgRun(shimSite, constructorArg);
            }
        }
Esempio n. 4
0
 public DemoSharePointDataContext(Microsoft.SharePoint.SPSite site)
     :
     base(site)
 {
 }
Esempio n. 5
0
 public TValue GetFromPropertyBag <TValue>(string key, Microsoft.SharePoint.SPSite propertyBag)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 public void SetInPropertyBag(string key, object value, Microsoft.SharePoint.SPSite propertyBag)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public bool ContainsKeyInPropertyBag(string key, Microsoft.SharePoint.SPSite propertyBag)
 {
     throw new NotImplementedException();
 }
Esempio n. 8
0
 public void RemoveKeyFromPropertyBag(string key, Microsoft.SharePoint.SPSite propertyBag)
 {
     throw new NotImplementedException();
 }