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 virtual async Task UpdateAsync(T entity) | |
{ | |
if (entity == null) | |
throw new ArgumentNullException(nameof(entity)); | |
if (!IsAttached(entity, out EntityEntry<T> entry)) | |
{ | |
Entities.Attach(entity); | |
_dbContext.Entry(entity).State = EntityState.Modified; | |
} |
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.Diagnostics; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
namespace Vkm.Core.Events | |
{ |
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
Microsoft Visual Studio Community 2019 | |
Версия 16.5.1 | |
VisualStudio.16.Release/16.5.1+29920.165 | |
Microsoft .NET Framework | |
Версия 4.8.03752 | |
Установленная версия: Community | |
ADL Tools Service Provider 1.0 | |
This package contains services used by Data Lake tools |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
namespace TypeSafeEnum | |
{ | |
[DebuggerDisplay("{Name}")] | |
public abstract class StringEnum<T> where T : StringEnum<T>, IEquatable<T> |
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
namespace Function | |
{ | |
public class ConfirmationKeyProvider | |
{ | |
private readonly Dictionary<long, string> GroupKeys; | |
public ConfirmationKeyProvider() | |
{ | |
GroupKeys = new Dictionary<long, string>() | |
{ |