Example #1
0
 IEnumerable <IPersistable> IConvertable <IDRange> .ToPersistables(IDRange aggregate)
 {
     return(new List <IPersistable>()
     {
         aggregate as IPersistable
     });
 }
Example #2
0
        public KeyValuePair <T, T> NextNumberRange(string key)
        {
            IDRange idRange = this.idRangeRepository.GetNextRange(key);

            return(new KeyValuePair <T, T>(
                       TypeConvertor <T> .GetValue(
                           idRange.StartRange.ToString()),
                       TypeConvertor <T> .GetValue(idRange.EndRange.ToString())));
        }