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)

13 results in tag: connection-string

The provider did not return a ProviderManifest instance

when I want to configure my Datasource (EntityDataSource1) and assign the connectionString that is generated automatically by entity data model to it. I get the error: ..."The metadata specified in the connection string could not be loaded. Consider rebui...
c# connection-string entitydatasource entity-framework entity-framework-6
asked by Parsa

c# - Entity Framework ConnectionString won't update after changing App.Config in runtime

I'm developing a WPF application which depends on Entity Framework for data access. At the first time installation I need to create a new connection string based on the User input, then updating App.Config according to that....The problem is: after updati...
app-config c# connection-string entity-framework entity-framework-6
asked by evolon

Entity Framework 6 Programmatically Connect to Postgres

I'm working on programmatically establishing a connection to PostgresSQL using Entity Framework 6. I have this class:...public class ClearspanDatabaseContext : DbContext ...with this constructor:...public ClearspanDatabaseContext() : base(buildConnect...
connection-string database-connection entity-framework entity-framework-6 npgsql
asked by Nick Gilbert

Connect to external SQL Server through Entity Framework

Basically I need to test a database on an external server (the model matches the model of my local test database)....Here is the connection string I have so far:...<connectionStrings> <add name="DefaultConnection" connectionString="Database=Qu...
connection-string database-connection entity-framework entity-framework-6 sql-server
asked by JensOlsen112

EF7 change connectionstring at runtime

In the previous versions of EF we were able to alter the dbcontext connection string as below :...context.Database.Connection.ConnectionString = "the new connectionstring"; ...How can we do this with EF7?...Thank you
connection-string entity-framework-core runtime
asked by Amine

Using Entity Framework 6 class library project with MVC 6

We spend thousands of hours creating application using EF6, and the structure we followed used EF6 framework into a separate class library layer, we are trying to switch to MVC 6 but still want to use EF6 class library project....The problem we are curren...
asp.net-core-mvc c# connection-string entity-framework entity-framework-6
asked by Azhar

Read DbContextOptions value in Entity Framework core constructor

In my asp.net core service, I have this in the startup...services.AddDbContext<Mydb_Context>( options => options.UseSqlServer(Configuration["Settings:ConnString"])); ...and to make it works, I created also this snippet:...public Mydb_Context(DbContext...
connection-string dbcontext entity-framework-core options
asked by Piero Alberto

Entity Framework Core connect to MSSQL database over SSH tunnel

I've seen a lot of posts asking similar questions, but none of which solved the issue I have....My setup is as follows:...Remote host with database: reachable on ...127.0.0.1:1433...SSH tunneling: ...L5000 -> 127.0.0.1:1433...When I enter the server name ...
c# connection-string database-connection entity-framework-core sql-server
asked by Tobias Würth

Code First Update-Database Keyword Not Supported

I am using the following connection string (from the "Show database connection strings" option in the Azure portal") to connect to an Azure SQL database;...services.AddDbContext<PwttContext>(options => options.UseSqlServer("Server=tcp:<serverName>.databas...
azure-sql-database connection-string entity-framework-core
asked by Ray

Have DbContext Dependency Injection available in Class library project. Is it possible?

In an Asp.Net Core MVC based application, we know that Dependency Injection (DI) is defined right in ...Startup... class under ...ConfigureServices... method like so:...var connection = @"Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=...
asp.net-core-2.1 c# connection-string database entity-framework-core
asked by Faisal Mq

How To connect to mysql database with EntityFramework Core?

In the goal to use asp.net core mvc with the mysql database , i have downloaded the ...specific provider of EF_Core for Mysql.......Then i registred ...the DbContext... service in the startup file:... services.AddDbContext<NawrasContext>(options=> ...
connection-string entity-framework-core mysql
asked by A.HADDAD

Using a database connection string stored in environment variable during migrations

I have ASP.NET Core project in which I store my PostgreSQL connection string in an environment variable. When I try to do the initial migration the project's build succeeds, but then it throws an exception: ...System.ArgumentNullException: Value cannot be...
asp.net-core c# connection-string entity-framework-core entity-framework-core-migrations
asked by Mantas Ptakauskas

WPF Core - Connection Strings inside App.config Not Working

Upon facing the said issue even followed the simple walkthrough at ...Connection Strings - EF Core... but found out that while ...hardcoding... the connectionstring as:...protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { ...
c# connection-string entity-framework-core visual-studio-2019 wpf-core
asked by Faraz Ahmed Qureshi

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!