Example #1
0
 public MereRepo()
 {
     _mereTable = MereUtils.CacheCheck <T>();
     if (string.IsNullOrEmpty(_mereTable.KeyColumnName))
     {
         throw new Exception("Must have a key column to use mere repo for right now");
     }
     _keyColumn = _mereTable.GetMereColumn(_mereTable.KeyColumnName);
 }
Example #2
0
        public MereDataReader(IEnumerable <T> list)
        {
            if (list == null)
            {
                throw new NullReferenceException("list was null or empty");
            }

            _mereTable = MereUtils.CacheCheck <T>();
            FieldCount = _mereTable.SelectMereColumns.Count;
            _list      = list.ToList();
        }