public void addDependency(int dependee, int dependsOn) { dependencies dependency = new dependencies(); dependency.dependeeId = dependee; dependency.dependsOnId = dependsOn; databaseConnection.dependencies.Add(dependency); databaseConnection.SaveChanges(); }
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);
public DependencyMap(IEnumerable <object> dependencies = null) => Consider(dependencies ?? Enumerable.Empty <object>());