Esempio n. 1
0
        /// <summary>
        /// Save for individual item
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="t"></param>
        public static void Save <T>(T t)
        {
            var batch = _context.CreateBatchWrite <T>();

            batch.AddPutItem(t);

            _context.ExecuteBatchWriteAsync(new BatchWrite[] { batch });
            //batch.ExecuteAsync();
        }