public string GetGradByID(int id) { opstine temp = new opstine(); temp = context.opstine.Where(x => x.gradID == id).SingleOrDefault(); return temp.naziv; }
/// <summary> /// Deprecated Method for adding a new object to the opstine EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToopstine(opstine opstine) { base.AddObject("opstine", opstine); }
public int GetGradByOpstina(string city) { opstine temp = new opstine(); temp = context.opstine.Where(x => x.naziv == city).SingleOrDefault(); return temp.gradID; }
/// <summary> /// Create a new opstine object. /// </summary> /// <param name="gradID">Initial value of the gradID property.</param> public static opstine Createopstine(global::System.Int32 gradID) { opstine opstine = new opstine(); opstine.gradID = gradID; return opstine; }