Inheritance: System.Data.Objects.DataClasses.EntityObject
Esempio n. 1
0
        public void createObject(int obtype, String attribute, int pollid)
        {
            try
            {
                POLL_OBJECTS_DFLT po = new POLL_OBJECTS_DFLT();

                po.O_ID = obtype;
                po.ATTRIBUTE = attribute;
                po.P_ID = pollid;

                dbpollContext.AddToPOLL_OBJECTS_DFLT(po);

                int status = dbpollContext.SaveChanges();
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the POLL_OBJECTS_DFLT EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPOLL_OBJECTS_DFLT(POLL_OBJECTS_DFLT pOLL_OBJECTS_DFLT)
 {
     base.AddObject("POLL_OBJECTS_DFLT", pOLL_OBJECTS_DFLT);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new POLL_OBJECTS_DFLT object.
 /// </summary>
 /// <param name="o_ID">Initial value of the O_ID property.</param>
 /// <param name="p_ID">Initial value of the P_ID property.</param>
 public static POLL_OBJECTS_DFLT CreatePOLL_OBJECTS_DFLT(global::System.Int32 o_ID, global::System.Int32 p_ID)
 {
     POLL_OBJECTS_DFLT pOLL_OBJECTS_DFLT = new POLL_OBJECTS_DFLT();
     pOLL_OBJECTS_DFLT.O_ID = o_ID;
     pOLL_OBJECTS_DFLT.P_ID = p_ID;
     return pOLL_OBJECTS_DFLT;
 }