diff --git a/GBase/GBase.cs b/GBase/GBase.cs index 3e43512..eba244f 100644 --- a/GBase/GBase.cs +++ b/GBase/GBase.cs @@ -101,8 +101,9 @@ namespace GBase if (Tables.OfType>().Any()) return Tables.OfType>().First(); - //TODO: This probably doesn't work, because even though t.Type : T, IGBaseTable !: IGBaseTable - return (IGBaseTable) Tables.FirstOrDefault(t => typeof(T).IsAssignableFrom(t.Type)); //TestMe + throw new MissingTableException(); + // //TODO: This probably doesn't work, because even though t.Type : T, IGBaseTable !: IGBaseTable + // return (IGBaseTable) Convert.ChangeType(Tables.FirstOrDefault(t => typeof(T).IsAssignableFrom(t.Type)), typeof(IGBaseTable)); //TestMe } /// @@ -149,7 +150,7 @@ namespace GBase { IGBaseTable table = GetTable(); if (table == null) - throw new Exception(); //TODO: Create exception + throw new MissingTableException(); return await table.GetValues(entry, propertyName, cancellationToken); }