Parcourir la source

移除不使用参数

宝臣 王 il y a 3 mois
Parent
commit
f7412a7910

+ 1 - 1
UniformMaterialManagementSystem/Utils/DataBaseUtil.cs

@@ -142,7 +142,7 @@ namespace UniformMaterialManagementSystem.Utils
             return sourcePath;
         }
 
-        public static async Task ImportTable<T>(SqliteContext context, string tableName, IEnumerable<T> sourceData) where T : class?
+        public static async Task ImportTable<T>(string tableName, IEnumerable<T> sourceData) where T : class?
         {
             await using var connection = new SqliteConnection("Data Source=UniformMaterialManagementSystem.db");
             connection.Open();

+ 1 - 1
UniformMaterialManagementSystem/ViewModels/LoginPageViewModel.cs

@@ -65,7 +65,7 @@ namespace UniformMaterialManagementSystem.ViewModels
             //var userRoles = users?.SelectMany(x => x.UserRoles).Distinct().ToArray();
 
             //if (supervisionUnits is { Length: > 0 })
-            //    DataBaseUtil.ExportTable(supervisionUnits, "SupervisionUnits", true);
+            //DataBaseUtil.ExportTable(supervisionUnits, "SupervisionUnits", true);
 
             //if (companies is { Length: > 0 })
             //    DataBaseUtil.ExportTable(companies, "Companies");