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); } }
public override bool Insert(string tableName) { DSpaceHelper.CreateItemsRepository(dspaceData, folderPath); return(true); }