hrmanagement's People
Forkers
raychiutw wawah arkinfescioglu toantv1987 syedbilalali ahmad-noor khertg tungtrungvn dimasmessias iamravikumar redizogolli fahimmerchant alp0716 mohamedhamroun ramanbehltechy castadere brekooname vcrox ns0004516 bryansilverio phanphu299 carlosambeliz developer20sujeet doantranthanh antjazldev ms-limon nguyetanhmyangel stjosco gfox91 shrujankotturi drew-miller parmidasoftdeveloper andyhuang1223 manouti1 alaaadelabbass matmape dusangojkovic87 kavatari agyesam ilhandemirtepe65 bgokoglu subhasaheb hainv jaruwatsaengowh parisajahanian tonybingo-stack parmidasoftdev webguru11124 shahilendra dongphh regestea anhtranthe gtechsltn ulomaramma yandrapragada iamphani lavrik-av trongpham-dev kimsunghwan1 elahehfarokhihrmanagement's Issues
Why Context does not have DbSet<>?
I am trying to learn the architecture but cannot understand why Context does not have DbSet<> tables. For example:
public DbSet <Department> Departments {get;set;}
public DbSet <User> Users {get;set;}
When running migrations, tables are not creating in the database.
Even adding them to DbContext this error shows up:
The entity type 'BaseDomainEvent' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.
Even ignoring DbSet<> running the API project when hitting Users shows this error:
System.InvalidOperationException: Cannot create a DbSet for 'User' because this type is not included in the model for the context.
I did a migration in VSCode.
dotnet ef migrations add initialcreation1 -s ../API/API.csproj
dotnet ef database update -s ../API/API.csproj
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.