Exemplo n.º 1
0
        /// <inheritdoc/>
        public async Task MergeAsync <T>(IEnumerable <T> models)
            where T : new()
        {
            if (IsConnected)
            {
                await _storageContext.CreateTableAsync <T>();

                await _storageContext.MergeAsync(models);
            }
        }
Exemplo n.º 2
0
        private async Task AddMapperAsync(Type type)
        {
            if (!_mappedTypes.Contains(type.FullName))
            {
                _storageContext.AddAttributeMapper(type);
                await _storageContext.CreateTableAsync(type, true);

                _mappedTypes.Add(type.FullName);
            }
        }