Great article on this:
-
Using bitwise operation with Enums in C#
-
Concise but full Regex cheat sheet
Look here: http://www.rexegg.com/regex-quickstart.html
-
Nightly jobs vs. events
Interesting concept of replacing all nightly jobs with delayed events.
-
Installing .NET Core on Mac
You can install .NET Core on your MacOs quite easily. You can find instructions on official Microsoft page. Or just make these steps:
1. Install
openssl
library with eitherhomebrew
ormacports
Homebrew:1234brew updatebrew install opensslln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/macports:
123port install opensslln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/In any case make sure you are under admin and check your path to installed openssl lib (
/opt/local/lib/
or/usr/local/opt/openssl/lib/
). It may differs depending on your configs.2. Download and install official .NET Core installer.
3. Make sure everything went well by typing in terminal: dotnet --info
4. Try to create and run a project:
12345mkdir hwappcd hwappdotnet newdotnet restoredotnet runYou should see
"Hello World!"
in Terminal. -
Comparison table of .NET test frameworks
You can see comparison table of methods/attributes/peculiarities of different .NET test frameworks by this link: http://xunit.github.io/docs/comparisons.html
-
EntityFramework migrations when working in team
Nice MSDN article about best practices of EntityFramework migrations when you work in a team: Code First Migrations in Team Environments
-
Avoid using many-to-many mappings in Entity Framework
Jimmy Bogard published a good article why you should avoid many-to-many relationships in ORMS. This applied to EntityFramework as well. A short recap: use junction models!
-
EntityFramework commands reference
It’s weird there is no good official command reference for EntityFramework.
Here is a great unofficial one: https://coding.abel.nu/2012/03/ef-migrations-command-reference/ -
.gitignore for Visual Studio C# projects
If you need ready-to-use .gitignore file for your Visual Studio/C# projects, here it is:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignoreThis file is a part of gitignore project which accumulates .gitignore for different languages/technologies.