public static string GetInsertSQL(Business.DataObjectHTMLContent item, SqlParameterCollection parameters) { SetParameters(item, parameters); return(@"INSERT INTO hiobj_HTMLContent (OBJ_ID) VALUES (@OBJ_ID)"); }
protected void Page_Load(object sender, EventArgs e) { if (DataObject is Business.DataObjectHTMLContent) { dataObjectHTMLContent = (Business.DataObjectHTMLContent)DataObject; } else { dataObjectHTMLContent = DataAccess.Business.DataObject.Load <Business.DataObjectHTMLContent>(DataObject.ObjectID, null, false); } LnkTitle.Text = dataObjectHTMLContent.Title; LnkTitle.NavigateUrl = Helper.GetDetailLink(dataObjectHTMLContent.ObjectType, dataObjectHTMLContent.ObjectID.Value.ToString()); LitDesc.Text = dataObjectHTMLContent.Description.StripHTMLTags().CropString(50); if (string.IsNullOrEmpty(LitDesc.Text)) { LitDesc.Text = "-"; } PhTitle.ID = null; PhDesc.ID = null; LitDesc.ID = null; LnkTitle.ID = null; }
private static void SetParameters(Business.DataObjectHTMLContent item, SqlParameterCollection parameters) { }
public static string GetUpdateSQL(Business.DataObjectHTMLContent item, SqlParameterCollection parameters) { SetParameters(item, parameters); return(string.Empty); }
public static void FillObject(Business.DataObjectHTMLContent item, SqlDataReader sqlReader) { }