示例#1
0
 public static EntityAlias.ReleaseDefinition ToEntity(this Kickstart.Build.Services.Model.ReleaseDefinition source)
 {
     return(new EntityAlias.ReleaseDefinition
     {
         Name = source.ReleaseDefinitionName,
         Id = source.ReleaseDefinitionIdentifier
     });
 }
示例#2
0
        public static ProtoAlias.ReleaseDefinition ToProto(this Kickstart.Build.Services.Model.ReleaseDefinition source)
        {
            var rd = new ProtoAlias.ReleaseDefinition
            {
                ReleaseDefinitionIdentifier = source.ReleaseDefinitionIdentifier,
                ReleaseDefinitionName       = source.ReleaseDefinitionName,
            };

            if (source.BuildDefinitions != null)
            {
                rd.BuildDefinitions.AddRange(source.BuildDefinitions.ToProto());
            }
            return(rd);
        }