Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_ProdCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_ProdCategories(tbl_ProdCategories tbl_ProdCategories)
 {
     base.AddObject("tbl_ProdCategories", tbl_ProdCategories);
 }
Example #2
0
 private static string ProductUrl(ProductModel productModel, tbl_ProdCategories category)
 {
     return String.Format("{0}/{1}", category.tbl_SiteMap.SM_URL, productModel.ProductTitle);
 }
Example #3
0
 /// <summary>
 /// Create a new tbl_ProdCategories object.
 /// </summary>
 /// <param name="categoryID">Initial value of the CategoryID property.</param>
 /// <param name="pC_Title">Initial value of the PC_Title property.</param>
 /// <param name="pC_Live">Initial value of the PC_Live property.</param>
 /// <param name="pC_Order">Initial value of the PC_Order property.</param>
 /// <param name="pC_Deleted">Initial value of the PC_Deleted property.</param>
 /// <param name="pC_ProductTypeID">Initial value of the PC_ProductTypeID property.</param>
 /// <param name="pC_Featured">Initial value of the PC_Featured property.</param>
 public static tbl_ProdCategories Createtbl_ProdCategories(global::System.Int32 categoryID, global::System.String pC_Title, global::System.Boolean pC_Live, global::System.Int16 pC_Order, global::System.Boolean pC_Deleted, global::System.Int32 pC_ProductTypeID, global::System.Boolean pC_Featured)
 {
     tbl_ProdCategories tbl_ProdCategories = new tbl_ProdCategories();
     tbl_ProdCategories.CategoryID = categoryID;
     tbl_ProdCategories.PC_Title = pC_Title;
     tbl_ProdCategories.PC_Live = pC_Live;
     tbl_ProdCategories.PC_Order = pC_Order;
     tbl_ProdCategories.PC_Deleted = pC_Deleted;
     tbl_ProdCategories.PC_ProductTypeID = pC_ProductTypeID;
     tbl_ProdCategories.PC_Featured = pC_Featured;
     return tbl_ProdCategories;
 }