소스 검색

移除不使用参数

宝臣 王 3 달 전
부모
커밋
f7412a7910
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      UniformMaterialManagementSystem/Utils/DataBaseUtil.cs
  2. 1 1
      UniformMaterialManagementSystem/ViewModels/LoginPageViewModel.cs

+ 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");