Esempio n. 1
0
        public void Save(IDiscountDefinition discount)
        {
            throw new NotSupportedException("Massive insert does not like SQL CE");

            // but it looks like this
            var table = new Discounts();

            table.Insert(new
            {
                discount.Code,
                discount.ExpirationDate,
                discount.ValidationScript,
                discount.ValidationScriptType,
            });
        }
        public void Save(IDiscountDefinition discount)
        {
            throw new NotSupportedException("Massive insert does not like SQL CE");

            // but it looks like this
            var table = new Discounts();

            table.Insert(new
            {
                discount.Code,
                discount.ExpirationDate,
                discount.ValidationScript,
                discount.ValidationScriptType,
            });
        }