int TimeFab = int.Parse(item.ColumnSum);
DatabaseEntities ET = new DatabaseEntities () ; int TimeFabricate =0; var query = from Time in ET where Time.Columnkey == "999" select new { Time.ColumnSum }; var result = query.ToList(); foreach (var item in result) { int TimeFab = int.Parse(item.ColumnSum); TimeFabricate += TimeFab; } MessageBox.Show(TimeFabricate.ToString());
TryParse
float TimeFab = float.Parse(item.ColumnSum);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)