示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericRepository{TEntity}"/> class.
 /// </summary>
 /// <param name="entities">
 /// The entities.
 /// </param>
 public GenericRepository(UmehlukoEntities1 entities)
 {
     this._entities  = entities;
     this._objectSet = entities.Set <TEntity>();
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="GenericUnitOfWork" /> class.
 /// </summary>
 public GenericUnitOfWork()
 {
     this._entities = new UmehlukoEntities1();
 }