/// <summary>
 /// Deprecated Method for adding a new object to the AnketnaPitanja EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAnketnaPitanja(AnketnaPitanja anketnaPitanja)
 {
     base.AddObject("AnketnaPitanja", anketnaPitanja);
 }
Beispiel #2
0
 public void SpremiPitanja(string a1,string a2,string a3,string a4,string a5,string a6,string a7,string a8,string a9,string a10,string a11,string a12,string a13,string a14,string a15,string a16,string a17,string a18,string a19,string a20, int i)
 {
     AnketnaPitanja temp = new AnketnaPitanja();
     temp.AnketaID = i;
     temp.Q1 = a1;
     temp.Q2 = a2;
     temp.Q3 = a3;
     temp.Q4 = a4;
     temp.Q5 = a5;
     temp.Q6 = a6;
     temp.Q7 = a7;
     temp.Q8 = a8;
     temp.Q9 = a9;
     temp.Q10 = a10;
     temp.Q11 = a11;
     temp.Q12 = a12;
     temp.Q13 = a13;
     temp.Q14 = a14;
     temp.Q15 = a15;
     temp.Q16 = a16;
     temp.Q17 = a17;
     temp.Q18 = a18;
     temp.Q19 = a19;
     temp.Q20 = a20;
     context.AnketnaPitanja.AddObject(temp);
     context.SaveChanges();
 }
 /// <summary>
 /// Create a new AnketnaPitanja object.
 /// </summary>
 /// <param name="qID">Initial value of the QID property.</param>
 public static AnketnaPitanja CreateAnketnaPitanja(global::System.Int32 qID)
 {
     AnketnaPitanja anketnaPitanja = new AnketnaPitanja();
     anketnaPitanja.QID = qID;
     return anketnaPitanja;
 }