Example #1
0
        public static SlaveToMasterId <TTarget> MapToType <TTarget, TSource>(SlaveToMasterId <TSource> source)
        {
            if (source == null)
            {
                return(null);
            }
            var targetMasterId = MapToType <TTarget, TSource>(source.MasterId);
            var targetSlaveId  = MapToType <TTarget, TSource>(source.SlaveId);

            return(new SlaveToMasterId <TTarget>(targetMasterId, targetSlaveId));
        }
Example #2
0
 public Task <JObject> ReadAsync(SlaveToMasterId <string> id, CancellationToken token = default(CancellationToken))
 {
     throw new NotImplementedException();
 }
 public SlaveToMasterId <string> Decorate(string masterIdConceptName, string slaveIdConceptName, SlaveToMasterId <string> id)
 {
     if (id == null)
     {
         return(null);
     }
     id.MasterId = Decorate(masterIdConceptName, id.MasterId);
     id.SlaveId  = Decorate(masterIdConceptName, id.SlaveId);
     return(id);
 }