コード例 #1
0
 /// <inheritdoc />
 public virtual void Dispose()
 {
     if (this.AccessPoint != null)
     {
         this.AccessPoint.Dispose();
         this.AccessPoint = null;
     }
 }
コード例 #2
0
 protected EfCoreBaseRepository(IAccessPointProvider <DbContext> accessPointProvider)
     : base(accessPointProvider) =>
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="accessPointProvider"></param>
 public AzureBaseBlobRepository(IAccessPointProvider <ICloudBlobWrapper> accessPointProvider) : base(accessPointProvider)
 {
 }
コード例 #4
0
 /// <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));
 }