Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DataTable GetTableWithUniqueColumn()
- {
- DataTable table = new DataTable();
- table = GetDataFromDB(); // dynamically getting data from different tables via joins
- table.Columns.Add("UniqueColumn", typeof(Guid));
- foreach (DataRow row in table.Rows)
- {
- row["UniqueColumn"] = Guid.NewGuid();
- }
- return table;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement