/// <summary>Creates a new, empty ProductPhotoEntity object.</summary> /// <returns>A new, empty ProductPhotoEntity object.</returns> public override IEntity Create() { IEntity toReturn = new ProductPhotoEntity(); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductPhoto // __LLBLGENPRO_USER_CODE_REGION_END return(toReturn); }
public void AddProductPhoto(int productId, string photoUniqueName) { ProductPhotoEntity productPhoto = new ProductPhotoEntity(); productPhoto.ProductId = productId; productPhoto.UniqueName = photoUniqueName; productPhoto.Save(); }
public bool DeleteProductPhoto(int id) { ProductPhotoEntity pp = new ProductPhotoEntity(id); return(pp.Delete()); }
public string GetProductPhotoUniqueName(int id) { ProductPhotoEntity pp = new ProductPhotoEntity(id); return(pp.UniqueName); }