git status -sb
git commit -m'ThirdCommit'
git push -u origin HEAD:ThirdBranch
git branch -a
git branch -r
git branch -v
git branch -vv
git branch -vv
* ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
master acd0015 [origin/FIRSTBRANCH] FirstCommit
git branch -a
* FifthBranch
ForthBranch
SecondBranch
ThirdBranch
master
remotes/origin/FIRSTBRANCH
remotes/origin/FifthBranch
remotes/origin/ForthBranch
remotes/origin/SecondBranch
remotes/origin/ThirdBranch
git branch -r
origin/FIRSTBRANCH
origin/FifthBranch
origin/ForthBranch
origin/SecondBranch
origin/ThirdBranch
git branch -v
* FifthBranch f5bd63e FifthCommit
ForthBranch 6b28a53 ForthCommit
SecondBranch 963d8fe SecondCommit
ThirdBranch 4863ec7 ThirdCommit
master acd0015 FirstCommit
git branch -vv
* FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
master acd0015 [origin/FIRSTBRANCH] FirstCommit
git add --a
git branch -vv
FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
* SevenBranch 9749316 [origin/SevenBranch] SevenCommit
ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
master acd0015 [origin/FIRSTBRANCH] FirstCommit
git log
commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:54:44 2017 +0800
SevenCommit
commit f5bd63ec48f7b10d423328b74e06b099df6ca165
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:45:25 2017 +0800
FifthCommit
commit 6b28a53ebf0056953a9310035e0a4cf6a25a0355
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:42:21 2017 +0800
ForthCommit
commit 4863ec7c824e96f77c47fc50d44b5b9fe310f515
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:37:42 2017 +0800
ThirdCommit
:...skipping...
commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:54:44 2017 +0800
SevenCommit
commit f5bd63ec48f7b10d423328b74e06b099df6ca165
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:45:25 2017 +0800
FifthCommit
commit 6b28a53ebf0056953a9310035e0a4cf6a25a0355
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:42:21 2017 +0800
ForthCommit
commit 4863ec7c824e96f77c47fc50d44b5b9fe310f515
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:37:42 2017 +0800
ThirdCommit
commit 963d8feeaf2e05c928cc180978bd0fc69de6e96f
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:31:08 2017 +0800
SecondCommit
commit acd001532e89cb482e81ac341acb12bc907d7d04
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:27:08 2017 +0800
FirstCommit
git log -2
commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:54:44 2017 +0800
SevenCommit
commit f5bd63ec48f7b10d423328b74e06b099df6ca165
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:45:25 2017 +0800
FifthCommit
git diff
diff --git a/ConsoleApp88/Program.cs b/ConsoleApp88/Program.cs
index 71d7646..63a058a 100644
--- a/ConsoleApp88/Program.cs
+++ b/ConsoleApp88/Program.cs
@@ -86,13 +86,13 @@ new Product {IdProduct = 6, Price = 60 }};
int start =1;
int end = 10;
- var expr =
- customers
- .Select((x, index) => new { index, x.Name, x.Country });
+ var orders = customers
+ .Where(x => x.Country == Countries.Italy)
+ .Select(x => x.Orders);
- foreach(var e in expr)
+ foreach(var item in orders)
{
- Console.WriteLine(e.index + "," + e.Name + "," + e.Country);
+ Console.WriteLine(item.FirstOrDefault().IdOrder+","+ item.FirstOrDefault().IdProduct+","+ item.FirstOrDefault().Month+","+ item.FirstOrDefault().Quantity+","+ item.FirstOrDefault().Shipped);
}
Console.ReadLine();
diff --git a/ConsoleApp88/bin/Debug/ConsoleApp88.exe b/ConsoleApp88/bin/Debug/ConsoleApp88.exe
index 92cc13e..86dffad 100644
Binary files a/ConsoleApp88/bin/Debug/ConsoleApp88.exe and b/ConsoleApp88/bin/Debug/ConsoleApp88.exe differ
diff --git a/ConsoleApp88/bin/Debug/ConsoleApp88.pdb b/ConsoleApp88/bin/Debug/ConsoleApp88.pdb
index 1b120f2..998f114 100644
Binary files a/ConsoleApp88/bin/Debug/ConsoleApp88.pdb and b/ConsoleApp88/bin/Debug/ConsoleApp88.pdb differ
diff --git a/ConsoleApp88/obj/Debug/ConsoleApp88.exe b/ConsoleApp88/obj/Debug/ConsoleApp88.exe
index 92cc13e..86dffad 100644
Binary files a/ConsoleApp88/obj/Debug/ConsoleApp88.exe and b/ConsoleApp88/obj/Debug/ConsoleApp88.exe differ
diff --git a/ConsoleApp88/obj/Debug/ConsoleApp88.pdb b/ConsoleApp88/obj/Debug/ConsoleApp88.pdb
index 1b120f2..998f114 100644
Binary files a/ConsoleApp88/obj/Debug/ConsoleApp88.pdb and b/ConsoleApp88/obj/Debug/ConsoleApp88.pdb differ
git branch -vv
FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
SevenBranch 9749316 [origin/SevenBranch] SevenCommit
* SixBranch cc85123 [origin/SixBranch] SixCommit
ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
master acd0015 [origin/FIRSTBRANCH] FirstCommit
git log -2
commit cc85123d52d7f3d29c3deee70f186c2bcafaf30a
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 01:02:52 2017 +0800
SixCommit
commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
Author: Fred1987 <2864326836@qq.com>
Date: Tue Feb 21 00:54:44 2017 +0800
SevenCommit