コード例 #1
0
        public void Tst1()
        {
            var repository = new CartRepositoryImpl("VirtoCommerce", new AuditableInterceptor(),
                                                    new EntityPrimaryKeyGeneratorInterceptor());
            var cart = new dataModel.ShoppingCartEntity
            {
                StoreId    = "ss",
                CustomerId = "ss",
                Currency   = "ss",
            };

            var shipment = new dataModel.ShipmentEntity
            {
                Currency = "sss",
            };

            cart.Shipments.Add(shipment);
            repository.Add(cart);
            repository.UnitOfWork.Commit();
        }