示例#1
0
        /// <summary>
        /// Inserts or replaces the record
        /// </summary>
        /// <param name="record"></param>
        /// <returns>Task.</returns>
        /// <exception cref="ArgumentNullException">record</exception>
        public Task InsertOrReplaceAsync(T record)
        {
            if (record == null)
            {
                throw new ArgumentNullException(nameof(record));
            }

            var entity = CreateEntity(record);

            return(_tableStore.InsertOrReplaceAsync(entity));
        }