Sorry in advance that I don't know right terms to explain here.. but I will try
I am using LINQPad7 (C# statement(s)) my tables are from SQL database.
What I have is:
Table1
dateTime(DateTime) / ID(Int32) / Name(String)
2022-01-01 / 11111 / Jim
2022-01-02 / 22222 / Jack
2022-01-03 / 33333 / John
Table2
dateTime(DateTime) / ID(Int32) / Name(String)
2022-01-04 / 44444 / Bill
2022-01-05 / 55555 / Jane
2022-01-06 / 66666 / James
What I want is:
Table3
dateTime(DateTime) / ID(Int32) / Name(String)
2022-01-01 / 11111 / Jim
2022-01-02 / 22222 / Jack
2022-01-03 / 33333 / John
2022-01-04 / 44444 / Bill
2022-01-05 / 55555 / Jane
2022-01-06 / 66666 / James
also I would like to filter data so that I can get list of data that is after 2022-01-01.
what i have tried:
var t1 = table1.AsEnumerable().Where(b => b.dateTime > new DateTime(2022,01,01,00,00,00));
var t2 = table2.AsEnumerable().Where(b => b.dateTime > new DateTime(2022,01,01,00,00,00));
var mergedTable = t1.Concat(t2).Dump();
I think I am not even close... Is there anybody can make this happen using c#?
Thank you so much!!