Exemplo n.º 1
0
 /// <summary>
 /// Create a new T_OE_SAVED_COLUMN_CONFIG object.
 /// </summary>
 /// <param name="cONFIG_IDX">Initial value of the CONFIG_IDX property.</param>
 public static T_OE_SAVED_COLUMN_CONFIG CreateT_OE_SAVED_COLUMN_CONFIG(global::System.Int32 cONFIG_IDX)
 {
     T_OE_SAVED_COLUMN_CONFIG t_OE_SAVED_COLUMN_CONFIG = new T_OE_SAVED_COLUMN_CONFIG();
     t_OE_SAVED_COLUMN_CONFIG.CONFIG_IDX = cONFIG_IDX;
     return t_OE_SAVED_COLUMN_CONFIG;
 }
Exemplo n.º 2
0
        //TODO: Change Saved_Column_Config column name for don't send_to_WQX to be send_to_WQX
        public static int InsertT_OE_SAVED_COLUMN_CONFIG(global::System.String configName, global::System.String orgID, global::System.Int32 wqxColID, global::System.String userColName)
        {
            using (OpenEnvironmentEntities ctx = new OpenEnvironmentEntities())
            {
                try
                {
                    T_OE_SAVED_COLUMN_CONFIG a = new T_OE_SAVED_COLUMN_CONFIG();

                    a.CONFIG_NAME = configName;
                    a.ORG_ID = orgID;
                    a.WQX_COL_ID = wqxColID;
                    a.USER_COL_NAME = userColName;

                    ctx.AddToT_OE_SAVED_COLUMN_CONFIG(a);
                    ctx.SaveChanges();
                    return 1;
                }
                catch (Exception ex)
                {
                    throw ex;
                    return 0;
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the T_OE_SAVED_COLUMN_CONFIG EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToT_OE_SAVED_COLUMN_CONFIG(T_OE_SAVED_COLUMN_CONFIG t_OE_SAVED_COLUMN_CONFIG)
 {
     base.AddObject("T_OE_SAVED_COLUMN_CONFIG", t_OE_SAVED_COLUMN_CONFIG);
 }