public static IterationsCollection Select_Iterationss_By_IterationTypeSysId(System.Nullable<int> IterationTypeSysId) { resourceSchema.Dal.Iterations dbo = null; try { dbo = new resourceSchema.Dal.Iterations(); System.Data.DataSet ds = dbo.Select_Iterationss_By_IterationTypeSysId(IterationTypeSysId); IterationsCollection collection = new IterationsCollection(); if (GlobalTools.IsSafeDataSet(ds)) { for (int i = 0; (i < ds.Tables[0].Rows.Count); i = (i + 1)) { Iterations obj = new Iterations(); obj.Fill(ds.Tables[0].Rows[i]); if ((obj != null)) { collection.Add(obj); } } } return collection; } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }