/// <summary>
 /// Deprecated Method for adding a new object to the komentari EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTokomentari(komentari komentari)
 {
     base.AddObject("komentari", komentari);
 }
Example #2
0
 public void SaveComment(string comment, int userid, int korid)
 {
     komentari temp = new komentari();
     temp.Komentar = comment;
     temp.DatumUnosa = DateTime.Now;
     temp.UserID = userid;
     temp.KorisnikID = korid;
     context.komentari.AddObject(temp);
     context.SaveChanges();
 }
 /// <summary>
 /// Create a new komentari object.
 /// </summary>
 /// <param name="komentarID">Initial value of the KomentarID property.</param>
 /// <param name="korisnikID">Initial value of the KorisnikID property.</param>
 public static komentari Createkomentari(global::System.Int32 komentarID, global::System.Int32 korisnikID)
 {
     komentari komentari = new komentari();
     komentari.KomentarID = komentarID;
     komentari.KorisnikID = korisnikID;
     return komentari;
 }