This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class DatabaseExtension | |
{ | |
private static readonly Dictionary<Type, List<PropertyInfo>> _properties = new Dictionary<Type, List<PropertyInfo>>(); | |
private static readonly Dictionary<Type, string> _tableNames = new Dictionary<Type, string>(); | |
private static readonly object _toLockTableName = new object(); | |
private static readonly object _toLockTypeProperties = new object(); | |
public static async Task UpsertAsync<T>(this DbContext dbContext, T item, CancellationToken cancellationToken) | |
where T : class | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestDeflate | |
{ |