Exemple #1
0
        public void addDependency(int dependee, int dependsOn)
        {
            dependencies dependency = new dependencies();

            dependency.dependeeId  = dependee;
            dependency.dependsOnId = dependsOn;
            databaseConnection.dependencies.Add(dependency);
            databaseConnection.SaveChanges();
        }
Exemple #2
0
 public void addConfigurationItem(configurationItem configurationItem)
 {
     databaseConnection.configurationItem.Add(configurationItem);
     if (configurationItem.dependenciesList != null && configurationItem.dependenciesList.Any())
     {
         foreach (var dependency in configurationItem.dependenciesList)
         {
             dependencies dependencies = new dependencies();
             dependencies.dependeeId  = configurationItem.configurationItemId;
             dependencies.dependsOnId = dependency;
             databaseConnection.dependencies.Add(dependencies);
         }
     }
     databaseConnection.SaveChanges();
 }
 => _sqlNullabilityProcessor = new NpgsqlSqlNullabilityProcessor(dependencies, useRelationalNulls);
Exemple #4
0
 public DependencyMap(IEnumerable <object> dependencies = null) => Consider(dependencies ?? Enumerable.Empty <object>());