private static Func <IDataReader, TDataset> GetSingleEntityReader(List <PropertyInfo> properties)
        {
            var reader = new SingleModelReader <TDataset>(properties);

            return(x =>
            {
                using (x)
                {
                    if (x.Read())
                    {
                        return reader.Read(x);
                    }

                    return default(TDataset);
                }
            });
        }
 public MultipleModelsReader(IEnumerable <PropertyInfo> properties)
 {
     _singleModelReader = new SingleModelReader <T>(properties);
 }
 public MultipleModelsReader()
 {
     _singleModelReader = new SingleModelReader <T>();
 }