Saji Weerasingham · @sajilicious
20 followers · 256 posts · Server hachyderm.io
Jim Carr · @jcarr
40 followers · 236 posts · Server techhub.social

I'm working with Entity Framework today, and I also received this pamphlet in the mail, and you can't tell me this is a coincidence.

#entityframework #dotnet

Last updated 1 year ago

Guillaume Lacasa :dotnet: · @glacasa
415 followers · 136 posts · Server dotnet.social


๐Ÿ‡บ๐Ÿ‡ธ
Has anybody got problems to build a .NET project with lots of migrations ?
After a few years of dev, we have ~1800 files in a folder, and the build server doesn't build (no response, then timeout)

When we remove the folder, it builds (but we can't deploy)

I have searched, but don't find anything about this particular problem (although I have seen people asking how to empty migration history)

#dotnet #entityframework

Last updated 1 year ago

Guillaume Lacasa :dotnet: · @glacasa
415 followers · 136 posts · Server dotnet.social


:us:
Has anybody got problems to build a .NET project with lots of migrations ?
After a few years of dev, we have ~1800 files in a folder, and the build server doesn't build (no response, then timeout)

When we remove the folder, it builds (but we can't deploy)

I have searched, but don't find anything about this particular problem (although I have seen people asking how to empty migration history)

#dotnet #entityframework

Last updated 1 year ago

Guillaume Lacasa :dotnet: · @glacasa
415 followers · 135 posts · Server dotnet.social


๐Ÿ‡ซ๐Ÿ‡ท
Est-ce que quelqu'un a dรฉjร  eu des soucis pour compiler des projets .NET avec un trop grand nombre de migrations ?
Aprรจs quelques annรฉes de dev, on a un dossier avec ~1800 fichiers, et le serveur de build n'arrive plus ร  compiler (il arrรชte de rรฉpondre, puis timeout)

En supprimant le dossier รงa compile (mais on peut pas dรฉployer)

J'ai beau chercher, je trouve personne qui parle de ce soucis particulier (mรชme si j'ai vu des gens demandant comment vider l'historique)

#dotnet #entityframework

Last updated 1 year ago

nobody · @sgolc
18 followers · 172 posts · Server mas.to

Wishing Java had a non-reflection way to dynamically generate instances of classes.

(I want to generate objects out of lists of components according to some interface for an entity component framework, for context)

Gonna have to investigate some ORMs or something to see how best to do that sort of thing

Or just get off my ass and move to another language

#gamedev #programming #entityframework #java

Last updated 1 year ago

billseipel · @billseipel
88 followers · 707 posts · Server fosstodon.org

Anyone have a favorite .NET 6 EF console app template in a Github repo?

Or are you gonna make me make one?

#dotnet #github #entityframework

Last updated 1 year ago

Marco Siccardi :dotnet: · @MSicc
361 followers · 29 posts · Server dotnet.social
InfoQ · @infoq
499 followers · 98 posts · Server techhub.social

Entity Framework Core 8, scheduled to be released in Nov 2023, brings new features & improvements to features already introduced in EF7.

Get a look at whatโ€™s new in : bit.ly/3F8Hy2s

#ef8 #dotnet #entityframework #efcore #ef7 #infoq

Last updated 1 year ago

Oleg Kyrylchuk :verified: · @okyrylchuk
112 followers · 25 posts · Server dotnet.social

๐—˜๐—™ 7 allows mapping properties to the different column names.

For instance, with a ๐—ง๐—ฎ๐—ฏ๐—น๐—ฒ-๐—ฝ๐—ฒ๐—ฟ-๐˜๐˜†๐—ฝ๐—ฒ inheritance mapping strategy, the primary keys in the tables may have different names.

๐—˜๐—™ allows the mapping to be configured using a nested table builder.

#dotnet #entityframework #devcommunity

Last updated 1 year ago

Oleg Kyrylchuk :verified: · @okyrylchuk
110 followers · 24 posts · Server dotnet.social

๐—˜๐—™ 7 introduces entity splitting.

It maps a single entity type to multiple tables.

The example below shows how a single ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ผ๐—ป entity maps to three separate tables - ๐—ฃ๐—ฒ๐—ผ๐—ฝ๐—น๐—ฒ, ๐—ฃ๐—ต๐—ผ๐—ป๐—ฒ๐—ก๐˜‚๐—บ๐—ฏ๐—ฒ๐—ฟ๐˜€, and ๐—”๐—ฑ๐—ฑ๐—ฟ๐—ฒ๐˜€๐˜€๐—ฒ๐˜€.

#dotnet #entityframework #devcommunity

Last updated 1 year ago

Oleg Kyrylchuk :verified: · @okyrylchuk
109 followers · 23 posts · Server dotnet.social

๐—˜๐—™ 7 supports many-to-many relationships where one side does not have a navigation property.

In the example below, a ๐—–๐—น๐—ฎ๐˜€๐˜€ entity does not have a navigation property to a ๐—ฆ๐˜๐˜‚๐—ฑ๐—ฒ๐—ป๐˜ entity.

However, you can still configure a many-to-many relationship between entities.

#dotnet #devcommunity #entityframework

Last updated 1 year ago

Oleg Kyrylchuk :verified: · @okyrylchuk
109 followers · 22 posts · Server dotnet.social

๐—˜๐—™ 7 introduces a ๐——๐—ฒ๐—น๐—ฒ๐˜๐—ฒ๐—•๐—ฒ๐—ต๐—ฎ๐˜ƒ๐—ถ๐—ผ๐—ฟ attribute.

It indicates how a delete operation is applied to a dependent entity in a relationship when it is deleted.

The example below shows disabling the default cascade deletes for the required relationship.

All options for the DeleteBehavior enum you can find by the link.

learn.microsoft.com/en-us/dotn

#dotnet #entityframework #devcommunity

Last updated 1 year ago

Marco Siccardi · @msicc
335 followers · 1274 posts · Server mastodon.social

Well, if on is your thing like it is for me, you should also fire up a terminal and type 'sudo dotnet workload update' ...

devblogs.microsoft.com/dotnet/

#dotnet #macos #update #security #aspnetcore #runtime #efcore #entityframework

Last updated 1 year ago

Marco Siccardi · @msicc
335 followers · 1274 posts · Server mastodon.social

Well, if on is your thing like it is for me, you should also fire up a terminal and type 'sudo dotnet workload update' ...

.NET February 2023 Updates โ€“ .NET 7.0.3, .NET 6.0.14

#dotnet #macos #update #security #aspnetcore #runtime #efcore #entityframework

Last updated 1 year ago

Paul Pitchford · @pitchie
8 followers · 15 posts · Server dotnet.social

Iโ€™m learning about writing unit tests. It feels like the elephant in the room Iโ€™ve been ignoring. It feels like there is a lot of leg work, especially for testing my db code but Iโ€™m hoping that as the app progresses and I write more tests theyโ€™ll feel more useful. Do you write and git commit your tests with your code changes or do you write your tests separately and treat them as separate commits?

#git #UnitTesting #xunit #entityframework

Last updated 1 year ago

James Turner · @turnerj
311 followers · 241 posts · Server fosstodon.org

Got caught out with a really subtle behaviour with around the ToDictionaryAsync API.

I expected what I defined as the key was projected in the query so when I had a relationship through a navigation property in the key, I expected it to work without an issue.

Unfortunately ToDictionaryAsync takes Func, not Expression<Func> so it is evaluated client side. Without specifying an Include statement on the navigation property, I got a null-reference exception.

#entityframework

Last updated 2 years ago

DevWouter · @DevWouter
70 followers · 467 posts · Server s.poweredbydev.com

Holy macaroni, Batman!

EF just generated a query in which a inner join resulted in a sub query of 164 columns, just because two tables are using the same key. The query only needs one column of a single table.

And as a bonus: A variation of that query that results in a `UNION ALL` only results in a single column being selected (as I suspected).

Iโ€™m not really sure what, why or how is the cause of the behavior. ๐Ÿ˜ณ

#entityframework #efcore #dotnet

Last updated 2 years ago

Jon Galloway · @jongalloway
1551 followers · 130 posts · Server mastodon.social

RT @ArthurVickers@twitter.com

8 News and Progress: aka.ms/ef-news

Raw SQL queries for unmapped types
- Parameterized SQL from interpolation syntax
- Uses C# parameterized constructor
- SQL can be further composed with LINQ

Merged for EF Core 8 Preview 1!

#efcore #dotnet #entityframework

Last updated 2 years ago

Saji Weerasingham · @sajilicious
11 followers · 82 posts · Server hachyderm.io

Help needed with a domain-driven design aggregate root that creates a child entity.

I'm using Entity Framework 7 for the underlying infrastructure.

stackoverflow.com/q/75107802/2

Thanks in advance.

#dotnet #csharp #entityframework #domaindrivendesign

Last updated 2 years ago