public void SaveOrUpdate(Configuration configuration) { using (DomumContext context = new DomumContext()) { context.Configurations.Add(configuration); context.SaveChanges(); } }
public void UT_Configuration_Create() { var newConfiguration = new Configuration() { ConfigID = 2, ConfigKey = "TEST", ConfigValue = "Ruben" }; var configurationRepository = new ConfigurationRepository(); configurationRepository.SaveOrUpdate(newConfiguration); }