Пример #1
0
        public override bool Save(Interface_DataAccess Da = null)
        {
            if (this.mIsCache)
            {
                DataTable Dt_Tub = Do_Methods_Query.GetQuery(@"System_TableUpdateBatch", "", @"TableName = '" + this.mHeader_TableName + @"'");
                DataRow   Dr_Tub = null;
                if (Dt_Tub.Rows.Count > 0)
                {
                    Dr_Tub = Dt_Tub.Rows[0];
                }
                else
                {
                    throw new Exception("Table Cache info not found.");
                }

                List <QueryParameter> List_Qp = new List <QueryParameter>();
                List_Qp.Add(new QueryParameter("TableUpdateBatchID", Do_Methods.Convert_Int64(Dr_Tub["System_TableUpdateBatchID"])));
                List_Qp.Add(new QueryParameter("ID", this.pID));

                Do_Methods_Query.ExecuteNonQuery("usp_InsertToTableUpdateBatch", List_Qp);
            }

            return(base.Save(Da));
        }