コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericRepository{T}"/> class.
 /// </summary>
 /// <param name="dBContext">The d b context.</param>
 protected GenericRepository(HahnDatabaseContext dBContext)
 {
     this.dBContext = dBContext;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitOfWork" /> class.
 /// </summary>
 /// <param name="dBContext">The d b context.</param>
 /// <param name="assetInformation">The asset information.</param>
 public UnitOfWork(HahnDatabaseContext dBContext, IAssetInformation assetInformation)
 {
     this.dBContext        = dBContext;
     this.assetInformation = assetInformation;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetInformation"/> class.
 /// </summary>
 /// <param name="dbContext">The database context.</param>
 public AssetInformation(HahnDatabaseContext dbContext) : base(dbContext)
 {
 }