SubSonic.Extensions.ToList

edit

SubSonic.Extensions.ToList

Summary== Creates a typed list from an IDataReader. ==Namespace

Unit Test==[Fact] public void ToList_Should_Load_76_Products_As_TypedList() { IList products = new List(); var db = new Northwind.DB(); using (var reader = db.Select.From().ExecuteReader()) { if (reader.Read()) products = reader.ToList(); } Assert.Equal(76,products.Count); } ==Comments

SubSonic 3.0 implements this as an extension on System.String - 2.x uses a static method on SubSonic.Sugar.Files.