partial void DeleteEET321_Lab4Table(EET321_Lab4Table instance);
partial void InsertEET321_Lab4Table(EET321_Lab4Table instance);
partial void UpdateEET321_Lab4Table(EET321_Lab4Table instance);
public void uploadData(int n, List<double> resData, char groupID, string type, string info) { for (int i = 0; i < n; i++) { EET321_Lab4DataContext res = new EET321_Lab4DataContext(); EET321_Lab4Table data = new EET321_Lab4Table(); data.GroupID = groupID; data.DateTime = DateTime.Now; data.Resistance = (float)resData[i]; data.Type = type; data.Info = info; res.EET321_Lab4Tables.InsertOnSubmit(data); res.SubmitChanges(); } }