/// <inheritdoc /> public virtual void Dispose() { if (this.AccessPoint != null) { this.AccessPoint.Dispose(); this.AccessPoint = null; } }
protected EfCoreBaseRepository(IAccessPointProvider <DbContext> accessPointProvider) : base(accessPointProvider) =>
/// <summary> /// /// </summary> /// <param name="accessPointProvider"></param> public AzureBaseBlobRepository(IAccessPointProvider <ICloudBlobWrapper> accessPointProvider) : base(accessPointProvider) { }
/// <summary> /// Ctor of base repository /// </summary> /// <param name="accessPointProvider"></param> public BaseRepository(IAccessPointProvider <TProvider> accessPointProvider) { AccessPoint = accessPointProvider ?? throw new ArgumentNullException(nameof(accessPointProvider)); Context = AccessPoint.Provider ?? throw new ArgumentNullException(nameof(AccessPoint.Provider)); }