Example #1
0
 static IEnumerable <PackageReference> GetMissingPackages(PackageConfiguration packageConfiguration, SourceRepository repository)
 {
     return(from package in packageConfiguration.Packages
            let version = ParseVersion(package.Version)
                          where !repository.Exists(new PackageIdentity(package.Id, version))
                          select package);
 }
Example #2
0
 private void InsertEntities(NewWorkData datas)
 {
     workRepository.Create(datas.Works);
     if (!sourceRepository.Exists(datas.ProjectID))
     {
         sourceRepository.Create(datas.Sources);
     }
     targetRepository.Create(datas.Targets);
 }