예제 #1
0
        public bool SyncStructure(int sort = 0)
        {
            var result = false;

            while (true)
            {
                if (m_column == null)
                {
                    break;
                }

                if (!m_metaColumn.GetColumn())
                {
                    break;
                }

                var metaSysColumn = m_metaColumn.SysColumn;
                metaSysColumn.sys_table_id = m_tableId;
                metaSysColumn.sort         = sort;
                if (!m_columnModel.HasRow)
                {
                    result = m_columnModel.AddRow(metaSysColumn);
                    break;
                }

                metaSysColumn.id = m_columnModel.Row.id;
                result           = (new ColumnModel()).ModifyRow(metaSysColumn);
                break;
            }
            return(result);
        }