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)

4 results in tag: database-schema

Setting schema name for DbContext

I know how to set the schema for a table in my context but is there a way to set the default schema for all the tables in a context? i.e. ...[Schema = "Ordering"] public class MyContext:DbContext { public MyContext() : base("name=ConnectionSt...
c# database-schema entity-framework entity-framework-6
asked by John S

Dynamically changing schema in Entity Framework Core

UPD...here... is the way I solved the problem. Although it's likely to be not the best one, it worked for me....I have an issue with working with EF Core. I want to separate data for different companies in my project's database via schema-mechanism. My qu...
asp.net-core c# database-schema entity-framework entity-framework-core
asked by user3272018

Add constraint to existing SQLite table

I'm using SQLite, which ...doesn't support... adding ...a constraint... to an existing table....So I can't do something like this (just as an example):...ALTER TABLE [Customer] ADD CONSTRAINT specify_either_phone_or_email CHECK (([Phone] IS NOT NULL) OR (...
alter-table check-constraints database-schema entity-framework-core sqlite
asked by grokky

Using a single Entity Framework Core DbContext to manage multiple database schemas with homonymous tables

In a ....NET Core 2.1 library... I need to access to a ...MySQL... database organized in multiple schemas with ...tables that can have the same name across those schemas.... I can't make any changes to the DB since it comes from another company. For most ...
.net-core c# database-schema dbcontext entity-framework-core
asked by Cheshire Cat

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!