Exemplo n.º 1
0
        public override DataTable GetSchemaTable()
        {
            DataTable res = ConnTools.SchemaFromStructure(m_structure);

            for (int i = 0; i < m_structure.Columns.Count; i++)
            {
                DataRow row = res.Rows[i];
                row[SchemaTableColumn.BaseTableName] = m_structure.FullName != null ? m_structure.FullName.Name : null;
                row[SchemaTableColumn.IsKey]         = m_structure.GetKeyWithColumn <IPrimaryKey>(m_structure.Columns[i]) != null;
            }
            return(res);
        }
Exemplo n.º 2
0
 public DataTable GetSchemaTable()
 {
     return(ConnTools.SchemaFromStructure(m_table.Columns.GetTableStructure("table")));
 }