/// <summary> /// Create a new VrstaOglasa object. /// </summary> /// <param name="vrstaID">Initial value of the VrstaID property.</param> public static VrstaOglasa CreateVrstaOglasa(global::System.Int32 vrstaID) { VrstaOglasa vrstaOglasa = new VrstaOglasa(); vrstaOglasa.VrstaID = vrstaID; return vrstaOglasa; }
public int GetVrsta(string textVrsta) { VrstaOglasa temp = new VrstaOglasa(); temp = context.VrstaOglasa.Where(x => x.VrstaOglasa1 == textVrsta).SingleOrDefault(); return temp.VrstaID; }
/// <summary> /// Deprecated Method for adding a new object to the VrstaOglasa EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVrstaOglasa(VrstaOglasa vrstaOglasa) { base.AddObject("VrstaOglasa", vrstaOglasa); }