// 按主键进行批量增加和更新 var storage = dbProvider.StorageableByObject(seedData.ToList()).ToStorage(); storage.AsInsertable.ExecuteCommand(); var ignoreUpdate = hasDataMethod.GetCustomAttribute<IgnoreUpdateAttribute>(); if (ignoreUpdate == null) storage.AsUpdateable.ExecuteCommand();
主要调用代码