private static void BuildMeterCreate(int PID, List <VM_Branch> branches, List <BranchMeter> branchMeters) { //清空BuildMeter表 BuildMeterDAL.DeleteByPID(PID); var buildMeters = ModelLink.BuildMeterLink(branches, branchMeters); CommonDAL.CreateMultiple(buildMeters); }
public static void BuildMeterCreate(int PID) { var result = getBranchesAndBranchMeter(PID); //清空BuildMeter表 BuildMeterDAL.DeleteByPID(PID); var buildMeters = ModelLink.BuildMeterLink(result.branches, result.branchMeters); CommonDAL.CreateMultiple(buildMeters); }