示例#1
0
        public void SetColumns()
        {
            List <DSpaceMetadataField> dSpaceMetadataFields = DSpaceHelper.GetMetadataFields();

            foreach (DSpaceMetadataField dSpaceMetadataField in dSpaceMetadataFields)
            {
                columns.Add(dSpaceMetadataField.name);
            }
            columns.Add("path");

            dspaceData           = new DataTable();
            dspaceData.TableName = "Dspace table";
            foreach (string field in columns)
            {
                DataColumn column = new DataColumn();
                column.ColumnName = field;
                column.DataType   = typeof(string);
                dspaceData.Columns.Add(column);
            }
        }
示例#2
0
 public override bool Insert(string tableName)
 {
     DSpaceHelper.CreateItemsRepository(dspaceData, folderPath);
     return(true);
 }