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); }
private void InsertEntities(NewWorkData datas) { workRepository.Create(datas.Works); if (!sourceRepository.Exists(datas.ProjectID)) { sourceRepository.Create(datas.Sources); } targetRepository.Create(datas.Targets); }