public static ListEx <Channel> GetList(ChannelsFilter f) { Database db = new DatabaseProviderFactory().CreateDefault(); DbCommand command = db.GetStoredProcCommand("p_Channels_GetList", f.CommunityId, f.Name.Trim(), f.Paging.CurrentPage, f.Paging.RecordsPerPage); command.CommandTimeout = DataBaseSettings.SqlCommandTimeout; using (IDataReader r = db.ExecuteReader(command)) { return(new ListEx <Channel>(r, x => new Channel(x))); } }
public static ListEx <Channel> GetList(ChannelsFilter f) { return(Channels.GetList(f)); }