Skip to content

Commit 186c2ec

Browse files
committed
Refactor RefreshSPOLists: Update list type references for improved clarity and consistency
1 parent 6768a32 commit 186c2ec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

SPOtoSQL-Snapshots/ConsoleApp1/SPODataQuality/RefreshSPOLists.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
using System;
66
using System.Collections;
77
using System.Collections.Generic;
8-
using Microsoft.Data.SqlClient;
8+
using System.Linq;
99
using System.Linq.Expressions;
1010
using System.Threading;
11+
using System.Data.SqlClient;
1112

1213
namespace Bring.SPODataQuality
1314
{
@@ -283,13 +284,13 @@ public static void GetAllLists()
283284
SPOUser = spoUser
284285
};
285286
// Iterate through all lists in the SharePoint site
286-
foreach (List allList in (ClientObjectCollection<List>)context.GetAllLists())
287+
foreach (Microsoft.SharePoint.Client.List allList in context.GetAllLists())
287288
{
288289
try
289290
{
290291
Logger.Log(1, "DEBUG: Loading list - " + allList.Title);
291292
// Load the IsSystemList property to determine if the list is a system list
292-
context.Ctx.Load<IList>(allList, new Expression<Func<List, object>>[1]
293+
context.Ctx.Load<IList>(allList, new Expression<Func<Microsoft.SharePoint.Client.List, object>>[1]
293294
{
294295
l => (object) l.IsSystemList
295296
});

0 commit comments

Comments
 (0)