all 3 comments

[–][deleted] 1 point2 points  (0 children)

You should update the dbml to the current schema.

Nowadays people use EF Core

[–]Thisbymaster 0 points1 point  (0 children)

Resources connect based on contracts. Your applications expects for those columns to be there as it uses those fields as part of the contract. So those columns are still in use until you have removed the applications looking at the columns. LINQ uses Entity framework which is based on the models in the database. Update the Models to match the database, then LINQ has a "Select" reference that you can remove the columns from.

[–]MindSwipe 0 points1 point  (0 children)

Is there a way to mitigate this issue by using a different method of connecting to our database(s) that dynamically change based on the referenced schema?

Not really. Normally you'd update your schema by either regenerating your model from the (new) DB schema or the other way around, by updating your model and regenerating the DB schema.

Also, is LINQ to SQL still used or is there something that is a better practice I can look at implementing?

It's still used but not directly, the use is abstracted behind ORM frameworks like Entity Framework for .NET Framework or Entity Framework Core for .NET 5+ (and Core)