/// <summary>
 /// Create a new Category object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Category CreateCategory(global::System.Int32 id, global::System.String name)
 {
     Category category = new Category();
     category.ID = id;
     category.Name = name;
     return category;
 }
Exemple #2
0
		static void WriteMessage(string origin, string subcategory, Category category, string code, string text)
		{
			System.Console.WriteLine("{0} : {1} {2} {3} : {4}", origin, subcategory, category.ToString(), code, text);
		}
 /// <summary>
 /// Deprecated Method for adding a new object to the Category EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCategory(Category category)
 {
     base.AddObject("Category", category);
 }
 /// <summary>
 /// Create a new Category object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="category1">Initial value of the Category1 property.</param>
 /// <param name="imageURL">Initial value of the ImageURL property.</param>
 public static Category CreateCategory(global::System.Int32 id, global::System.String category1, global::System.String imageURL)
 {
     Category category = new Category();
     category.Id = id;
     category.Category1 = category1;
     category.ImageURL = imageURL;
     return category;
 }