For a DataContext I'm working on, I don't want to load the Tables untill their needed.
I want to make a little method that would check if a certain Table is loaded before loading it, but I end up having n Methods doing the same thing :
private void Load(ref Table<Order> Orders)
if (Orders == null)
Orders = this.GetTable<Order>();
private void Load<T>(ref Table<T> TableToLoad)
if (TableToLoad == null)
TableToLoad = this.GetTable<T>();