EF Core 6.0 new features. 48 code samples.

The biggest thread of mine so far. With sub-threads. The last this year.

It took me almost two months to go through many new features in EF Core 6.

Retweets are appreciated 😊

#dotnet6 #efcore6 #coding #devcommunity
A new EntityTypeConfiguration attribute
Specifying columns order with Column attribute
HasConversion supports built-in or custom value converters
Many-to-many without additional configuration
Scaffolding many-to-many improvements
Scaffolding nullable reference types
AddDbContextFactory also registers DbContext
DbContext pooling without dependency injection
A new enum CommandSource has been added to the CommandEventData type
Value converters allow converting nulls
SQLite supports DateOnly and TimeOnly
In-memory database validates required properties
EF.Functions.Contains with value converters
All code samples you can find on my GitHub
github.com/okyrylchuk/dot…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Oleg Kyrylchuk

Oleg Kyrylchuk Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @okyrylchuk

23 Dec
LINQ query enhancements in EF Core 6.0 thread.

12 features with code samples.

Retweets are appreciated 😊

#dotnet6 #efcore6 #coding #devcommunity
String.Concat translation with 3 and 4 arguments
Read 14 tweets
2 Nov
A big thread of new APIs in the .NET 6. 🧵

Retweets are appreciated ☺️

#dotnet6 #coding #devcommunity #programming
Reflection API for nullability information.
Reflection API for nested nullability information.
Read 20 tweets
5 Oct
A thread about LINQ improvements in .NET 6 🧵

As always, retweets are appreciated 😌

#dotnet6 #linq #coding #devcommunity
Override default value in '*OrDefault' methods.
New 'MinBy', 'MaxBy', 'DistinctBy', 'ExceptBy', 'IntersectBy', 'UnionBy' methods.
Read 8 tweets
26 Sep
All my tweets about C# 10 features in one thread. 🧵

Retweets are appreciated 😊

#dotnet #csharp #coding #devcommunity
Read 15 tweets
6 Sep
Self-contained apps are cool in #dotnet. You can bundle runtime and framework with the app. The downside is the size.

To resolve the size problem you can use app trimming.

.NET 5 introduces multiple options to trim the app.

1/4 🧵

#coding #devcommunity
The assembly-level trimming leaves only used assemblies in the app.

TrimMode=CopyUsed is default when using PublishTrimmed=true.

Result: 10.8 MB.

2/4
The member-level trimming is more aggressive. It removes types and members that are not used.

⚠️ It's an experimental feature. It's not ready for mainstream use.

Result: 2.58 MB.

3/4
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(