zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

18 results in tag: azure-cosmosdb

Entity Framework Core and DocumentDB Transaction

is there any way to execute an all-or-nothing transaction with both systems included? E.g....using(transaction) { DbContext.SaveChanges(); DocumentClient.DoStuff(); transaction.Commit(); } ...EF Core does not seem to support Transaction Scope....
azure-cosmosdb entity-framework-core transactions
asked by mbue

EntityFrameworkCore.Cosmos preview 3 - Not Found Error

I am trying to use the new EntityFrameworkCore.Cosmos Preview 3 package in an ASP.NET Core website, but I keep getting an error back when trying to Create the DB. I can't seem to find any documentation to give me an idea of what is causing the error....I...
asp.net-core azure-cosmosdb entity-framework-core
asked by Jerry Esch

Cosmos DB provider in Entity Framework Core throwing 400 BadRequest

I've integrated Cosmos DB in my ASP.NET Core API project, using the latest EF Core package that ships with a Cosmos DB provider....I'm able to successfully use this provider when running locally in my local ASF cluster, connecting to a local Cosmos DB emu...
azure-cosmosdb azure-cosmosdb-sqlapi c# entity-framework-core
asked by Mortana

C# - .NET- Cross partition query is required but disabled when I Get

I'm building a web API with .net core and the CosmosDb SQL API. My post method works, but when I try to get data from the database I get an error "Cross partition query is required but disabled"....I am using the entity framework core for cosmosdb sql and...
.net azure-cosmosdb azure-cosmosdb-sqlapi c# entity-framework-core
asked by Ethan

EF Core Cosmos 3.0.0 incompatible with .NET Core

In an ASP.NET Core (v 2.1.1) web app I'd like to use EF Core with Cosmos DB. For this I need to add the ...Microsoft.EntityFrameworkCore.Cosmos... package....I'm able to install the ...old 2.2.0-preview3-35497... NuGet....However the current ...3.0.0-prev...
asp.net-core azure-cosmosdb entity-framework-core
asked by Dušan Rychnovský

How can i set partition key from cosmosdb collection through entity framework core code first approach?

public class TaxathandDbContext : DbContext { public TaxathandDbContext(DbContextOptions options) : base(options) { Database.EnsureCreated(); }... protected TaxathandDbContext() { Database.EnsureCreat...
.net-core asp.net-core azure azure-cosmosdb entity-framework-core
asked by Saiteja Prattipati

Unable to connect to Azure Cosmos Db Account (Core SQL API) using EF Core 3.0 CosmosDb provider

I'm unable to connect to an Azure CosmosDB with the CosmosDb provider using the following packages:...Microsoft.EntityFrameworkCore 3.0.0 Microsoft.EntityFrameworkCore.Cosmos 3.0.0...Getting this message back:...Response status code does not indicate succ...
.net-core-3.0 azure-cosmosdb azure-cosmosdb-sqlapi entity-framework-core entity-framework-core-3.0
asked by Niklas Björklund

Maximum number of retries (6) exceeded while executing database operations with 'CosmosExecutionStrategy'

I am working on API development project using ASP.NET Core 2.2, GraphQL.NET , CosmosDB, Entity Framework Core (Microsoft.EntityFrameworkCore.Cosmos v2.2.4)....While testing the API method which pulls the data from AzureComosDB, sometime I get this error:....
asp.net-core-2.2 azure-cosmosdb c# entity-framework-core graphql.net
asked by santosh kumar patro

Updating entities with Entity Framework and cosmos db

During the ..._dbContext.Update(entity) ...The following exceptions occurs:...System.InvalidOperationException: 'Unable to track an entity of type 'User' because alternate key property 'id' is null. If the alternate key is not used in a relationship, then...
azure-cosmosdb c# entity-framework-core
asked by Tobias Moe Thorstensen

Exception with owned collections with EF Core and CosmosDB provider

I have an Entity Framework Core context with CosmosDB provider and only one entity:...public class Entity1 { public Guid Id { get; set; } public List<Item> Items { get; set; } } ...here are the inner objects of the entity:...public class Item { ...
.net-core azure-cosmosdb c# entity-framework-core
asked by aperezfals

Error while using CosmosDB provider for Entity Framework Core with Azure Tables

I'm trying to do a simple CRUD application with EF Core and Azure Table (from Azure Storage Account)....I'm passing name of the storage account as database name (The docs aren't exactly clear on that)...services.AddDbContext<HomioDbContext>(options => ...
.net-core azure azure-cosmosdb c# entity-framework-core
asked by Pratik

Entity Framework Core and Cosmos DB. Using LINQ expressions to read entities

In our solution we´re using the package ...Microsoft.EntityFrameworkCore.Cosmos 3.1.1... to do operations against our cosmos databases and containers in Azure. We have a fairly easy object structure. An object containg a list of other objects. ...public ...
azure azure-cosmosdb c# entity-framework-core entity-framework-core-3.1
asked by Tobias Moe Thorstensen

SelectMany doesn't work on cosmosDb for child properties?

When I try to use selectMany on queryable that I build against cosmosdb I always get exception:...The LINQ expression 'DbSet .Where(t => t.Id == __timelineId_0) .SelectMany( source: t => EF.Property>(t, "GraduationEvents") ...
.net-core azure-cosmosdb entity-framework-core entity-framework-core-cosmosdb
asked by Ultern

Unable to connect to Azure Cosmos Db Account using Microsoft.EntityFrameworkCore.Cosmos - Response status code

The CosmosDb provider is sending this message:...“Response status code does not indicate success: 503 Substatus: 0 Reason: (The request failed because the client was unable to establish connections to 3 endpoints across 1 regions. Please check for clien...
azure azure-cosmosdb entity-framework-core
asked by Luis Augusto Barbosa

EF Core Cosmos DB with Azure Table Storage

Since Microsoft recently have merged Azure Table Storage namespaces and api with Cosmosdb, I thought it would be possible to use Entity Framework Core Cosmos with Azure Storage Tables.. only I'm not able to provide a database name in the configuration:...
azure azure-cosmosdb azure-table-storage entity-framework-core
asked by Morten_564834

Cosmos DB update fails Unable to cast Guid to string

Tried to update a Cosmos DB record in ASP.NET core 3.1. But the update fails with the following message: "Unable to cast object of type ...'System.Func'2[Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry,System.Guid]' to type 'Syst...
asp.net-core azure-cosmosdb entity-framework-core
asked by Gerard

Cosmos provider for Entity Framework Core creating container with DbContext class name

I'm using Azure Cosmos DB in asp net core 3.1 app with Microsoft.EntityFrameworkCore.Cosmos package. In my AppContext class on OnModelCreating method i've give every dbset ToContainer() method to define the name of container otherwise it'll give AppContex...
asp.net-core asp.net-identity azure-cosmosdb c# entity-framework-core
asked by Mick

System.InvalidOperationException: No suitable constructor found for entity type 'BoundingBox'

I'm using asp.net core 3.1 with entity framework core cosmos db provider. In my model I've a property for LocationCoordinates of type pointer. When checking if user exists I'm getting error....I'm using point class in my model class ApplicationUser. Micro...
asp.net-core asp.net-identity azure-cosmosdb c# entity-framework-core
asked by Mick

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!