The command-line interface (CLI) tools for Entity Framework Core perform design-time development tasks. For example, they create migrations, apply migrations, and generate code for a model based on an existing database.
dotnet ef can be installed as either a global or local tool. Most developers prefer installing dotnet ef as a global tool using the following command:
dotnet tool install –global dotnet-ef
Update the tool tool using the following command:
dotnet tool update –global dotnet-ef
Before you can use the tools on a specific project, you’ll need to add the Microsoft.EntityFrameworkCore.Design package to it.
I am trying to setup cheapest development environment for Azure Kubernetes journey. I am provisioing this service in East US so all prices are in USD;
az aks create –name myakscluster
This will bring up Standard_DS2_v2 node that cost $106.58 at the time of this writing.
I like to drop it a smaller VM. AKS specification are that every AKS cluster will have at minimum one node pool and node pool require a VM SKU of at least 2 vCPUs and 4GM memory. The cheapest VM at that configuration is Standard_B2s that cost about $30.37.
–node-count 1 –node-vm-size Standard_B2s
AKS uses a Load Balancer and by default the Standard sku @ ~$30/month will be selected. The Basic sku is free, but the Load Balancer sku cannot be changed once the cluster has been created, so we must set it at time of creation.
Disk size defaults to 100GB which for this VM is a Premium SSD p10 @ 19.79/month. Minimum disk size is 30 so we’ll choose the 32GB p4 @ $1.54/month.
The cheapest cluster power shell is; az aks create -n myakscluster \ –node-count 1 \ –node-vm-size Standard_B2s \ –load-balancer-sku basic \ –node-osdisk-size 32
Hope, this will save some money on compute, storage and networking during development.
Sometimes the network firewall on the Local Computer or the Server could interrupt your connection so make sure you create rules to “Allow Inbound” and “Allow Outbound” connection for c:\windows\msdtc.exe
From the Mac OS X Finder, hit Command+K to bring up the ‘Connect to Server’ window. Enter your login/password and click “OK” to mount the network drive. The drive will now appear on your desktop and in the Finder window sidebar.
How to Force Restart Your Mac?
Press and hold down the Command (⌘) and Control (Ctrl) keys along with the power button (or the Touch ID / Eject button, depending on the Mac model) until the screen goes blank and the machine restarts.
How to add a user to Sudoers in Mac OS X?
sudo visudo Use the arrow keys to navigate down to the “#User privilege specification” section, it should look like this:
# User privilege specification root ALL=(ALL) ALL %admin ALL=(ALL) ALL
Put the cursor on the next empty line below the %admin entry and then press the “A” key to insert text, then type the following on a new line, replacing ‘username’ with the users short name of the account you wish to grant privilege to (hit tab between username and ALL): username ALL=(ALL) ALL
Now hit the “ESC” (escape) key to stop editing the file Hit the : key (colon) and then type “wq” followed by the Return key to save changes and exit vi ou should be good to go, you can cat the sudoers file to be certain the file was modified: