Exemplo n.º 1
0
 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&lt;T&gt; property instead.
 /// </summary>
 public void AddToopstine(opstine opstine)
 {
     base.AddObject("opstine", opstine);
 }
Exemplo n.º 3
0
 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;
 }