Exemplo n.º 1
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;
                }
            }
        }