« first day (5143 days earlier)      last day (24 days later) » 

00:00
To the systems programmer, users and applications serve only to provide a test load. (source)
 
3 hours later…
03:24
@JakobMiller But Kieran not me
 
8 hours later…
11:04
posted on November 14, 2024 by Mika Dumont

Looking to resolve code issues quickly? The new GitHub Copilot feature integrated into the lightbulb and error list in Visual Studio 2022 offers a valuable solution for developers. Whether you’re working in C# or C++, this feature will help you understand and address problems in your codebase more efficiently. The integration of GitHub Copilot into […] The post Fix code with GitHub

11:52
@Michael you can also switch to LTSC and get them for free
12:16
I am refactoring my project to share the logic of two entity classes with exactly the same structure but in different databases by interfaces and generic
What do you mean by different databases?
well, same columns but in different database instance
As in like an actually different database structure, just with a table that happens to be the same in each?
yeah
I know you want to say "Why use two classes?", because I'm sorry that this project does not use EFCore, its column declaration is based on Attribute and table names are different, so can only be two classes
righto. Might not make sense to combine them if there's a chance of them diverging in future, which seems likely if they're in seperate databases (if it was actually the same thing then surely it would be the same database
12:29
In fact, they are the same kinds of data of two different maintenance context. Because they are the same kinds of data, the logic is always the same, but the maintenance context are different, so they cannot put in same place.
@Mr.Squirrel.Downy If that's the case then it sounds like you need to better seperate your concerns - maybe there shouldn't be any logic on the db "layer", and it should be moved to a different layer
logic not in database layer
if you can read this
I think I see what you're trying to do
you can just use the same class in 2 dbcontexts
@Mr.Squirrel.Downy I said
@CaptainObvious Cannot use same class, The table mapping is use Attribute
and table name not the same
You can still set the tablename in the model config in the dbcontext
I think that takes precedence over the attributes
12:35
oh... I said.. not EFCore
also don't use attributes for exactly this reason
In the previous step, I only implemented the logic of one db instance.
Now I refactored it to support two instance.
Next step to refactor this to use them transfer data between two db instance
this sounds dodgy
From the code, you should be able to see an Importer and an Exporter, one that packages the data into a Zip file for export, and another that reads the Zip file for import.
But why do they need seperate contexts
12:40
In two database instance and different table with different table name, only same column
You ask why, I just say "It's by design".
 
1 hour later…
13:41
@Mr.Squirrel.Downy Surely there must be a better way to synchronize data between databases.
 
2 hours later…
15:19
Well, data synchronization between databases can indeed be quite challenging! Depending on your scenario, you could consider using Azure Data Factory for orchestrating and automating data movement. It's like a bridge for data across different sources, including on-premises and cloud databases. If you're deeply ingrained in the .NET ecosystem, you might like the idea of leveraging whatever Microsoft offers, right?

Alternatively, if this is an ongoing task with two databases constantly needing synchronization, perhaps investigating SQL Data Sync (if you're using Azure SQL Databases) can be b
 
3 hours later…
18:10
posted on November 14, 2024 by RNDr. Tomáš Grošup, Ph.D.

Read about latest F# 9 feature, Nullable Reference Types The post Nullable Reference Types in F# 9 appeared first on .NET Blog.

posted on November 14, 2024 by Kathleen Dollard

Let's take a look at C# 13's new params collections that make methods easier to use and allow new optimizations. The post Calling methods is easier and faster with C# 13 params collections appeared first on .NET Blog.


« first day (5143 days earlier)      last day (24 days later) »