Exemplo n.º 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();
        }
Exemplo n.º 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);
Exemplo n.º 4
0
 public DependencyMap(IEnumerable <object> dependencies = null) => Consider(dependencies ?? Enumerable.Empty <object>());