Comments (5)
Hello Joel,
Currently, we do not support PostgreSQL for the EF Core version. We will try to add the support during the weekend since almost everything is already here.
About the error, it's caused because there is no default constructor for your context. For EF Core, we modified a little bit our code and it must require now to be able to create a context.
Example:
static ApplicationDbContextPCore()
{
var options = new DbContextOptionsBuilder();
options.UseNpgsql(new SqlConnection(My.Config.ConnectionStrings.TestDatabase));
EntityFrameworkManager.ContextFactory = context => new ApplicationDbContextPCore(options);
}
We will try to document and improve the error message as well.
More information will be provided as soon as we support it.
Best Regards,
Jonathan
from entityframework-extensions.
Alright! Thank you for the answer, looking forward for an updated version then :)
from entityframework-extensions.
Hello @joelnotified ,
We finally success to release our stable version which supports PostgreSQL ;)
https://www.nuget.org/packages/Z.EntityFramework.Extensions.EFCore/
Let me know if you found some issue.
Best Regards,
Jonathan
from entityframework-extensions.
Closing Comment: Fix released
from entityframework-extensions.
var auxs = new List<ConciliacionBancariaAux>();
foreach (var aux in conciliacionViewModel.conciliacionBancariaAux)
{
var conciliado= !string.IsNullOrEmpty(aux.Uuid);
//if(aux.IsNew)
{
auxs.Add(new ConciliacionBancariaAux
{
ProcesoBancoId = procesoBancoId,
Fecha = aux.Fecha,
Referencia = aux.Referencia,
TipoMovimientoId = aux.TipoMovimientoId,
Debito = aux.Debito,
Credito = aux.Credito,
EstadoId = aux.EstadoId,
Uuid = aux.Uuid,
Conciliado = conciliado,
TableInfo = aux.TableInfo,
IdOrigen = aux.IdOrigen,
IdRef = aux.IdRef,
Arrastrado = !aux.IsNew,
IsNew = aux.IsNew,
ProcesoBancoIdOld = aux.ProcesoBancoIdOld
});
}
}
db.BulkInsert(auxs);
Error : A default DbContext context must exist, or a context factory must be provided
`<PackageReference Include="Z.EntityFramework.Extensions.EFCore" Version="2.1.47" />`
from entityframework-extensions.
Related Issues (20)
- BulkUpdate and BulkMerge Do Not Apply Any Changes To The Table with Owned Entity HOT 1
- BulkSaveChanges results in Foreign Key Constraint Violation but SaveChanges works HOT 3
- BulkMerge is Causing Violation of PRIMARY KEY constraint HOT 1
- BulkInsert: System.IndexOutOfRangeException: 'There is no row at position 0.' HOT 4
- While inserting new record through BulkMerge it's not overriding default constraint value HOT 3
- The type initializer for 'Z.BulkOperations.LicenseManager' threw an exception HOT 13
- `PublicExtensions` static dictionaries are filling up HOT 4
- SQLite Invalid cast from 'System.String' to 'System.Guid' HOT 4
- IDbCommandInterceptor does not fire when using BulkInsert or BulkDelete HOT 2
- WhereBulkContains does not work when table inherit from another table HOT 1
- Feat: Conditional insert HOT 13
- EFcore 8 UpdateFromQuery generates invalid sql HOT 5
- Microsoft.Data.SqlClient is on a vulnerable version - security update HOT 1
- BulkInsert ignoring session context value set before insert HOT 10
- BulkInsert - ERROR_34 HOT 17
- Z.EntityFramework.Plus.EFCore - Official behavior on DataAnnotations ? HOT 1
- Feat: IncludeInner extension method to force Parent/Children inner joins HOT 6
- BatchSaveChanges should support operation.AllowConcurrency = false HOT 6
- BulkInsertAsync throw errors not supporting ARRAY HOT 5
- UpdateFromQueryAsync with DbCommandInterceptor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entityframework-extensions.