|
|
|
|
@ -9,6 +9,7 @@ using System.Reflection; |
|
|
|
|
using System.Threading; |
|
|
|
|
using System.Threading.Tasks; |
|
|
|
|
using GBase.Attributes; |
|
|
|
|
using GBase.Exceptions; |
|
|
|
|
using GBase.Factories; |
|
|
|
|
using GBase.Interfaces; |
|
|
|
|
using GBase.Interfaces.Settings; |
|
|
|
|
@ -121,7 +122,7 @@ namespace GBase |
|
|
|
|
{ |
|
|
|
|
IGBaseTable<T> table = GetTable<T>(); |
|
|
|
|
if (table == null) |
|
|
|
|
throw new Exception(); //TODO: Create exception |
|
|
|
|
throw new MissingTableException<T>(); |
|
|
|
|
|
|
|
|
|
return await table.AddEntry(entry, cancellationToken); |
|
|
|
|
} |
|
|
|
|
@ -130,7 +131,7 @@ namespace GBase |
|
|
|
|
{ |
|
|
|
|
IGBaseTable<T> table = GetTable<T>(); |
|
|
|
|
if (table == null) |
|
|
|
|
throw new Exception(); //TODO: Create exception |
|
|
|
|
throw new MissingTableException<T>(); |
|
|
|
|
|
|
|
|
|
await table.SetValue(entry, propertyName, value, cancellationToken); |
|
|
|
|
} |
|
|
|
|
@ -139,7 +140,7 @@ namespace GBase |
|
|
|
|
{ |
|
|
|
|
IGBaseTable<T> table = GetTable<T>(); |
|
|
|
|
if (table == null) |
|
|
|
|
throw new Exception(); //TODO: Create exception |
|
|
|
|
throw new MissingTableException<T>(); |
|
|
|
|
|
|
|
|
|
return await table.GetValue<TProperty>(entry, propertyName, cancellationToken); |
|
|
|
|
} |
|
|
|
|
|