Inheritance: System.Data.Objects.DataClasses.EntityObject
Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SESSIONS EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSESSIONS(SESSION sESSION)
 {
     base.AddObject("SESSIONS", sESSION);
 }
Example #2
0
        public void createSession(int pollid, String name, decimal latitude, decimal longitude, DateTime time)
        {
            try
            {
                SESSION newSession = new SESSION();

                newSession.SESSION_ID = getMaxSessionID() + 1;
                newSession.SESSION_NAME = name;
                newSession.LATITUDE = latitude;
                newSession.LONGITUDE = longitude;
                newSession.SESSION_TIME = time;
                newSession.POLL_ID = pollid;

                dbpollContext.AddToSESSIONS(newSession);
                dbpollContext.SaveChanges();
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
Example #3
0
 /// <summary>
 /// Create a new SESSION object.
 /// </summary>
 /// <param name="sESSION_ID">Initial value of the SESSION_ID property.</param>
 /// <param name="lONGITUDE">Initial value of the LONGITUDE property.</param>
 /// <param name="lATITUDE">Initial value of the LATITUDE property.</param>
 /// <param name="sESSION_TIME">Initial value of the SESSION_TIME property.</param>
 /// <param name="nEXT_QUESTION">Initial value of the NEXT_QUESTION property.</param>
 public static SESSION CreateSESSION(global::System.Int32 sESSION_ID, global::System.Decimal lONGITUDE, global::System.Decimal lATITUDE, global::System.DateTime sESSION_TIME, global::System.Int32 nEXT_QUESTION)
 {
     SESSION sESSION = new SESSION();
     sESSION.SESSION_ID = sESSION_ID;
     sESSION.LONGITUDE = lONGITUDE;
     sESSION.LATITUDE = lATITUDE;
     sESSION.SESSION_TIME = sESSION_TIME;
     sESSION.NEXT_QUESTION = nEXT_QUESTION;
     return sESSION;
 }