예제 #1
0
        public void TestAddCustomer()
        {
            MetaManager metaManager = new MetaManager();

            Customer customer = new Customer()
            {
                ID             = Guid.NewGuid().ToString(),
                Name           = "Customer01",
                Configurations = new Configuration[]
                {
                    new Configuration()
                    {
                        ID = Guid.NewGuid().ToString(),
                        ConfigurationType  = ConfigurationType.OEM,
                        DbConnectionString = "Data Source=.\\ADK;Initial Catalog=OEMKeyStore_009;User ID=DIS;Password=Chin@soft!"
                    },
                    new Configuration()
                    {
                        ID = Guid.NewGuid().ToString(),
                        ConfigurationType  = ConfigurationType.FactoryFloor,
                        DbConnectionString = "Data Source=.\\ADK;Initial Catalog=OEMKeyStore_008;User ID=DIS;Password=Chin@soft!"
                    },
                }
            };

            string result = metaManager.AddCustomerConfiguration(customer);

            Console.WriteLine(result);
        }