コード例 #1
0
 public void SaveOrUpdate(Configuration configuration)
 {
     using (DomumContext context = new DomumContext())
     {
         context.Configurations.Add(configuration);
         context.SaveChanges();
     }
 }
コード例 #2
0
        public void UT_Configuration_Create()
        {
            var newConfiguration = new Configuration()
            {
                ConfigID = 2,
                ConfigKey = "TEST",
                ConfigValue = "Ruben"
            };

            var configurationRepository = new ConfigurationRepository();
            configurationRepository.SaveOrUpdate(newConfiguration);
        }