-
We could find the entity type name from the `DbSet` if it's explicitly initialized.
```C#
public DbSet Orders { get; }
= Set("Order");
```
Or we could add an annotation
```C#
[EntityType("O…
-
I use `MaxIdentifierLength` limit to support Oracle:
```csharp
public class OpenIddictDbContext : DbContext
{
public OpenIddictDbContext(DbContextOptions options)
: base(options)
…
gscpw updated
10 months ago
-
how to get from:
`string strExpression = "x => new { x.Ido, x.OtdName }";`
such expression:
`Expression result = x => new {x.Ido, x.OtdName };`
I need this to select specific fields in Gen…
-
Reproduction steps: Create any context with an active database connection. Assuming the context contains a DbSet "Entities", try the following:
Console.WriteLine(ctx.Entities.Select(x => DbFunc…
-
NET8. I will try to describe the issue as briefly as possible.
1) Nuget package **EntityConfig** contains _model-DB_ mappings;
2) Nuget package **Base** contains entity `TenantInner` and consumes …
-
**Is your feature request related to a problem? Please describe.**
There is a new template that seems incompatible with this nuget package. I have a clean solution here.
https://github.com/etrieb…
-
Consider the following basic EF Core setup:
```cs
using Microsoft.EntityFrameworkCore;
class MyClass
{
}
class MyDbContext : DbContext
{
public DbSet MyDbSet { get; set; } = null…
-
Including multiple non-related dbset counts in one query will perform multiple SQL queries if the dbsets are not filtered by a dummy where clause. `AsSingleQuery` does not help. I would prefer not hav…
-
Hi guys.
I had a problem with an project with Database First Approach. My app was truncating every decimal's information.
Consider model as:
``` C#
class Sell
{
public int SellerId { …
-
EF COre The LINQ expression 'DbSet could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', …