partial void DeletePepsDB(PepsDB instance);
partial void InsertPepsDB(PepsDB instance);
partial void UpdatePepsDB(PepsDB instance);
public void Insert(DateTime Datee, double[] spot) { PepsDB ord = new PepsDB { Date = Datee, FTSE = spot[0].ToString(), S_P = spot[1].ToString(), NIKKEI = spot[2].ToString(), EUROSTOXX = spot[3].ToString(), }; myDbdc.PepsDB.InsertOnSubmit(ord); try { myDbdc.SubmitChanges(); } catch (Exception e) { Console.WriteLine(e); } }