示例#1
0
 partial void DeleteEET321_Lab4Table(EET321_Lab4Table instance);
示例#2
0
 partial void InsertEET321_Lab4Table(EET321_Lab4Table instance);
示例#3
0
 partial void UpdateEET321_Lab4Table(EET321_Lab4Table instance);
示例#4
0
        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();
            }
        }