/// <summary>
 /// Create a new OPASUpdate object.
 /// </summary>
 /// <param name="oPASUpdateId">Initial value of the OPASUpdateId property.</param>
 /// <param name="tableName">Initial value of the TableName property.</param>
 /// <param name="columnName">Initial value of the ColumnName property.</param>
 /// <param name="hasBeenUpdated">Initial value of the HasBeenUpdated property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedOn">Initial value of the ModifiedOn property.</param>
 /// <param name="stamp">Initial value of the Stamp property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 /// <param name="tagName">Initial value of the TagName property.</param>
 public static OPASUpdate CreateOPASUpdate(global::System.Int32 oPASUpdateId, global::System.String tableName, global::System.String columnName, global::System.Boolean hasBeenUpdated, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 modifiedBy, global::System.DateTime modifiedOn, global::System.Byte[] stamp, global::System.Boolean active, global::System.String tagName)
 {
     OPASUpdate oPASUpdate = new OPASUpdate();
     oPASUpdate.OPASUpdateId = oPASUpdateId;
     oPASUpdate.TableName = tableName;
     oPASUpdate.ColumnName = columnName;
     oPASUpdate.HasBeenUpdated = hasBeenUpdated;
     oPASUpdate.CreatedBy = createdBy;
     oPASUpdate.CreatedOn = createdOn;
     oPASUpdate.ModifiedBy = modifiedBy;
     oPASUpdate.ModifiedOn = modifiedOn;
     oPASUpdate.Stamp = stamp;
     oPASUpdate.Active = active;
     oPASUpdate.TagName = tagName;
     return oPASUpdate;
 }
        public string RunImport(bool update)
        {
            try
            {
                if (update)
                {
                    var updateData = new OPASUpdate();
                    updateData.UpdateOPASData();
                }
                else
                {
                    var importData = new ImportOPASData();
                    importData.Initialize();
                    importData.Import();
                    //importData.Finalize();
                }
            }
            catch (Exception ex)
            {
                return ex.Message;
            }

            return "Success";
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the OPASUpdates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOPASUpdates(OPASUpdate oPASUpdate)
 {
     base.AddObject("OPASUpdates", oPASUpdate);
 }
        public static OPASUpdate NewOPASUpdate()
        {
            OPASUpdate newObject = new OPASUpdate();

            BsoArchiveEntities.Current.AddToOPASUpdates(newObject);
            BsoArchiveEntities.SetDefaultValue(newObject);
            return newObject;
        }