Ahseeah / assignments

0 stars 0 forks source link

Week 08 - Day 1 - Safari Adventure #27

Closed mdewey closed 5 years ago

mdewey commented 5 years ago

ORM Safari!

We are taking a surprise trip to the Savannah for a safari to see all sorts of exotic animals. During our time their we want to keep track of all the animals we have seen. For this, we need to create a database, as well as a small console application to help record what we see.

Objectives

Requirements

Additional Reading

NOTE: The Additional Resources section below is very helpful. Consider reading this after reading Explorer mode. Then make a plan for the assignment for digging in and writing code.

Explorer Mode (C#)

Explorer Mode (Ruby)

Adventure Mode (C#)

Adventure Mode (Ruby)

Epic Mode

Additional Resources

Ruby

.NET

Here are the interesting commands you will need for tonight's assignment

 dotnet add package Microsoft.EntityFrameworkCore.Design --version 2.1.3

 dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 2.1.2
createdb <<DatabaseName>>
dotnet ef dbcontext scaffold "server=localhost;database=<<DatabaseName>>" Npgsql.EntityFrameworkCore.PostgreSQL -c <<DatabaseName>>Context
 dotnet ef migrations add AddBaordGameTable
dotnet ef database update
Ahseeah commented 5 years ago

https://github.com/Ahseeah/safari

gstark commented 5 years ago

Your homework was marked: Meets Expectations

Ring that bell!

“Ring that bell!” — via Mark Dewey