예제 #1
0
 public PropertyWrapper(
     ICardDataAccess cardDataAccess,
     IPropertyTypeDataAccess propertyTypeDataAccess,
     int ownerId,
     int propertyTypeId)
 {
     _owner        = new PropWrapper <Card>(() => cardDataAccess.Get(ownerId));
     _propertyType = new PropWrapper <PropertyType>(() => propertyTypeDataAccess.Get(propertyTypeId));
 }
예제 #2
0
 public HardLinkWrapper(ICardDataAccess cardDataAccess, int originId, int targetId)
 {
     CardDataAccess = cardDataAccess;
     _origin        = new PropWrapper <Card>(() => cardDataAccess.Get(originId));
     _target        = new PropWrapper <Card>(() => cardDataAccess.Get(targetId));
 }