E521 Added CaseSentitive to ExcelDataTableConfiguration. by kevin-frugier · Pull Request #732 · ExcelDataReader/ExcelDataReader · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@kevin-frugier
Copy link

This allows the creation of a primary key after case sensitive data is loaded from Excel.

This allows the creation of a primary key after case sensitive data is loaded from Excel.
@kevin-frugier
Copy link
Author

Technically, this can also simply be replaced, for users, by leaving ExcelDataTable untouched and calling this on your resulting DataTable:

 public static DataTable MakeCaseSentive(DataTable srcTable)
 {
     DataTable dstTable = srcTable.Clone();
     dstTable.CaseSensitive = true;
     foreach (DataRow row in srcTable.Rows)
     {
         dstTable.ImportRow(row);
     }
     return dstTable;
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0