You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Enter feedback here]
What your not showing is how to Create a entry with a keyless from a DTO
EG
//convert the DTO to a obj that has no key, (keyless)
var obj = _mapper.Map<KeylessDTOTable, KeylessTable>(objDTO);
_dbWaterConsentsSamples.Add(obj);
//Then add and bingo - a error.
//How do I add a keyless obj to EF Core. That's what I and many want to know how
int status = _dbWaterConsentsSamples.SaveChanges();
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: f3ffc114-df51-0be7-8972-6fcead14e011
Version Independent ID: 94c34571-7314-aab1-7898-93ac6d0f3430
[Enter feedback here]
What your not showing is how to Create a entry with a keyless from a DTO
EG
//convert the DTO to a obj that has no key, (keyless)
var obj = _mapper.Map<KeylessDTOTable, KeylessTable>(objDTO);
_dbWaterConsentsSamples.Add(obj);
//Then add and bingo - a error.
//How do I add a keyless obj to EF Core. That's what I and many want to know how
int status = _dbWaterConsentsSamples.SaveChanges();
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: