Beispiel #1
0
 public CardTypeWrapper(IImageDataAccess imageDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess, int cardTypeId, int imageId)
 {
     Id             = cardTypeId;
     _image         = new PropWrapper <Image>(() => imageDataAccess.Get(imageId));
     _propertyTypes = new PropWrapper <List <PropertyType> >(() =>
                                                             new List <PropertyType>(propertyTypeDataAccess.GetPropertyTypesByCardTypeId(Id.Value)));
 }
Beispiel #2
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));
 }
Beispiel #3
0
 public PropertyDataAccess(ICardDataAccess cardDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess)
 {
     CardDataAccess         = cardDataAccess;
     PropertyTypeDataAccess = propertyTypeDataAccess;
 }
Beispiel #4
0
 public CardTypeDataAccess(IImageDataAccess imageDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess)
 {
     ImageDataAccess        = imageDataAccess;
     PropertyTypeDataAccess = propertyTypeDataAccess;
 }