public static List <Product> ToList(BLL.Product v) { List <Product> list = new List <Product>(); while (!v.EOF) { Product t = new Product(); if (!v.IsColumnNull("ID")) { t.ID = v.ID; } if (!v.IsColumnNull("Name")) { t.Name = v.IIN; } if (!v.IsColumnNull("TypeID")) { t.TypeID = v.TypeID; } list.Add(t); v.MoveNext(); } return(list); }