AutoFixture
Entity Framework
Our great sponsors
AutoFixture | Entity Framework | |
---|---|---|
8 | 77 | |
2,946 | 12,322 | |
2.1% | 1.7% | |
3.1 | 9.9 | |
about 1 month ago | 2 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AutoFixture
- Integration tests without API dependencies with ASP.NET Core and WireMock.Net
-
I need a C# crash course for experienced developers
AutoFixture
-
Reduce your tests cognitive complexity with AutoFixture
Ensuring that your test is still readable and not bloated by the setup of those variables may be quite a challenge but hopefully no more with AutoFixture, let's see how!
-
Practical complex data for unit testing
One neat library for creating and generating test data is AutoFixture. The creators describe it as follows:
-
14 .NET packages I always recommend
First time I heard of Bogus, looks interesting, been using AutoFixture for those will definitely take a look at it.
- LPT: There is a library called Bogus, you should know it exists much earlier than I did in my career.
-
Cell CMS - Criando testes de maneira prática
AutoFixture / AutoFixture
Entity Framework
-
Why keep EF Core migrations in a separate project?
Xamarin/MAUI requires using a separate dotnet standard console project to use dotnet ef for migrations.
-
EFCore Many-to-Many: any way to prevent inefficient sub-select without a round-trip?
I think you're seeing the same issue as I saw here: https://github.com/dotnet/efcore/issues/19418 - I think you may have commented on a linked/related issue (the code looks familiar).
-
ELI5 SDK.NET for ESRI products
DotSpatial is one I've used in the past, mostly for accepting various file uploads and reading the data. I also use EntityFramework in conjunction with spatial data in SQL Server, PostgreSQL/PostGIS, and SQLite.
-
Entity Framework AsSplitQuery() single join before and after SQL example
It does execute via separate roundtrips. I've seen the SQL it generates and there's an open issue to batch -> https://github.com/dotnet/efcore/issues/10878
Open issue on it currently -> https://github.com/dotnet/efcore/issues/10878
-
Entity Framework Core 6.0.13 - Negative Foreign Key Values Inserted For Join Entity
Turns out it's a defect in EF Core. It's been reported. Thanks for the help!
-
Track my coding progress on GitHub with a .NET Worker Service
Finally, let's create the database using Entity Framework Core's migrations, e.g. via .NET CLI:
-
.NET 7 Native.AOT, Trimming and Data Access
Regarding EF.Core, I've seen example rd.xml templates and references in GitHub about AOT trimming. I've spent a few hours trying to get EF.Core 7 to work, including trying pre-compiled models, but keep running into errors like this:
-
How to use performant Guid as primary keys in databases. UUID Version 7 to the rescue!
EntityFramework also includes an algorithm optimized for MSSQL: SequentialGuidValueGenerator @ github.com/dotnet/efcore.
-
Whats the different between these two? What should I be using if im on NET 6?
Oh, if you are only selecting from the key that should be ok, by projections I meant over the IGroupings. This for instance.. But they are fixing more and more every day, so hopefully not long to feature equality.
What are some alternatives?
LINQ to DB - Linq to database provider.
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Dapper - Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper]
FluentMigrator - Fluent migrations framework for .NET
PetaPoco - Official PetaPoco, A tiny ORM-ish thing for your POCO's
ServiceStack.OrmLite - Fast, Simple, Typed ORM for .NET
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
NSubstitute - A friendly substitute for .NET mocking libraries.
NPoco - Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco
Moq - Repo for managing Moq 4.x
FakeItEasy - The easy mocking library for .NET
NBuilder - Rapid generation of test objects in .NET