update issue
-
hi guys public void Update_Assay(Mapping map) { try { Machine_Integration dc = new Machine_Integration(); var qry = from mapping in dc.GetTable() where mapping.ID == map.ID select mapping; foreach (Mapping mp in qry) { mp.Instrument_Asssay_No = map.Instrument_Asssay_No; mp.Istrument_Assay_Name = map.Istrument_Assay_Name; mp.Nexus_Assay_No = map.Nexus_Assay_No; mp.Assay_Type = map.Assay_Type; } dc.SubmitChanges(); } catch (Exception ex) { throw ex; } } but rows are not updated any idea? regards ,
Tauseef A Khan MCP Dotnet framework 2.0.
-
hi guys public void Update_Assay(Mapping map) { try { Machine_Integration dc = new Machine_Integration(); var qry = from mapping in dc.GetTable() where mapping.ID == map.ID select mapping; foreach (Mapping mp in qry) { mp.Instrument_Asssay_No = map.Instrument_Asssay_No; mp.Istrument_Assay_Name = map.Istrument_Assay_Name; mp.Nexus_Assay_No = map.Nexus_Assay_No; mp.Assay_Type = map.Assay_Type; } dc.SubmitChanges(); } catch (Exception ex) { throw ex; } } but rows are not updated any idea? regards ,
Tauseef A Khan MCP Dotnet framework 2.0.
Are you certain any rows are being returned by your query? Set a breakpoint and make sure that your
foreach
loop is actually being stepped into.Adam Maras | Software Developer Microsoft Certified Professional Developer
-
Are you certain any rows are being returned by your query? Set a breakpoint and make sure that your
foreach
loop is actually being stepped into.Adam Maras | Software Developer Microsoft Certified Professional Developer