示例#1
0
文件: TableDAO.cs 项目: xavl369/UGRS
        /// <summary>
        /// Initializes the table.
        /// </summary>
        /// <remarks>
        /// Ranaya, 26/05/2017.
        /// </remarks>
        /// <param name="pObjTable">
        /// The object table.
        /// </param>

        private void InitializeTable(T pObjTable)
        {
            UserTablesMD lObjUserTable = pObjTable.GetUserTable();

            try
            {
                if (!ExistsTable(lObjUserTable.TableName))
                {
                    HandleException.Table(lObjUserTable.Add());
                }
            }
            finally
            {
                MemoryUtility.ReleaseComObject(lObjUserTable);
            }
        }