Exemplo n.º 1
0
 public static PortfolioAJAX GetSerializedObject(tblPortfolio item)
 {
     var returnItem = new PortfolioAJAX()
     {
         Id = item.ItemId,
         Title = item.ItemTitle,
         Date = item.ItemDate.Value.ToShortDateString(),
         Description = item.ItemDescription,
         Url = string.Empty,
         ExpandText = (item.tblExpandText == null) ? string.Empty : item.tblExpandText.ExpandText,
         CodeUrl = (item.ItemCodeUrl == null) ? string.Empty : item.ItemCodeUrl,
         Languages = (item.ItemLanguage == null) ? string.Empty : item.ItemLanguage,
         Software = (item.ItemSoftware == null) ? string.Empty : item.ItemSoftware,
         ThumbImage = "images/thumbs/" + item.tblSection.SectionFolderName + "/" + item.ItemImageName,
         PreviewImage = "images/preview/" + item.tblSection.SectionFolderName + "/" + item.ItemImageName,
         FullImage = "images/fullsize/" + item.tblSection.SectionFolderName + "/" + item.ItemImageName,
         SectionId = item.ItemSectionId.Value.ToString(),
     };
     if (item.ItemWebUrl != null)
     {
         returnItem.Url = item.ItemWebUrl;
         if (!item.ItemWebUrl.Contains("http://") && item.ItemWebUrl !="None")
         {
             returnItem.Url = "images/fullsize/" + item.tblSection.SectionFolderName + "/" + item.ItemWebUrl;
         }
     }
     return returnItem;
 }
 partial void DeletetblPortfolio(tblPortfolio instance);
 partial void UpdatetblPortfolio(tblPortfolio instance);
 private void detach_tblPortfolios(tblPortfolio entity)
 {
     this.SendPropertyChanging();
     entity.tblSection = null;
 }
 partial void InserttblPortfolio(tblPortfolio instance);
 private void detach_tblPortfolios(tblPortfolio entity)
 {
     this.SendPropertyChanging();
     entity.tblExpandText = null;
 }
 partial void DeletetblPortfolio(tblPortfolio instance);
 partial void UpdatetblPortfolio(tblPortfolio instance);
 partial void InserttblPortfolio(tblPortfolio instance);
Exemplo n.º 10
0
		private void detach_tblPortfolios(tblPortfolio entity)
		{
			this.SendPropertyChanging();
			entity.tblSection = null;
		}
Exemplo n.º 11
0
		private void detach_tblPortfolios(tblPortfolio entity)
		{
			this.SendPropertyChanging();
			entity.tblExpandText = null;
		}