4 ms·
You’re right, I misremembered! I made a hideous inheritance chain instead: abstract class UserDAL { } abstract class ParcelDAL : UserDAL { } ...
by krallja 4y ago
You’re right, I misremembered! I made a hideous inheritance chain instead:
abstract class UserDAL { }
abstract class ParcelDAL : UserDAL { }
...
abstract class DAL_n : DAL_n_minus_1 { }
class DataAccessLayer : DAL_n { }
each in their own file, of course. I tried to give them descriptive names and very narrow scopes. But inheritance is pretty dumb here. What does it mean for ParcelDAL to extend UserDAL? A parcel is not a user. When C# 2 came out, I was able to get rid of the inheritance and make them all part of one big partial class, keeping the file names the same.