-
So when mapping a view there is a workaround that can be taken.
* when creating/installing the db dont map the view (to avoid EF creating a table named by the view)
* when using the db map the …
-
Accessing `UnmodifiedEntity` on a type with a ComplexType on it causes an exception. It doesn't matter if the changed value is inside the complextype or directly on the entity: accessing the unmodifie…
-
My context is
![](http://i.stack.imgur.com/uocxR.png)
In above we have not added DbSet for `UserRole` if we add that it will work fine.
Using this model via Entity Framework code 1st, data table i…
-
hi,
I am trying to query a field in a list of objects:
this is what my dto is like
public class MainDto
{
public List'SecondDto' Involved { get; set; }
}
public class SecondDto
…
-
Implement the Repository pattern to access the database.
- [x] Make the repository interface
- [ ] Make the tests for the repository
- [x] Implement the repository interface
- [x] Make the Unit of…
-
Hello,
I have one more bug with my favorite model :)
short description:
Following code should change column names for tables of Dividend and Coupon entity, but it doesn't.
Instead, it change…
-
### Description
When attempting to use InsertFromQuery with the Microsoft InMemory database it throws the exception below.
Our unit tests at present are based on the InMemory database. We are ho…
-
``` C#
public int Update(Expression filterExpression, Expression updateExpression, bool isSave)
{
DbSet set = dbContext.Set();
set.Where(filterExpression).Update( updateExpression);
…
-
The [What's New doc](https://docs.microsoft.com/en-us/ef/core/what-is-new/) says,
> Limitations
> - Navigation references are not allowed. This feature may be added based on feedback.
> - Filters…
-
For example, in this case
`dbContext.Filter(q => q.Where(c => c.Name == "abc"));`
`dbContext.Set().ToList();`
The filter will not be applied.
There are already consumers of a context that use the …