Beispiel #1
0
 public static T LoadIf <T>(this IDbStore dbStore, object id)
     where T : IEntity
 {
     return(id == null ? default(T) : dbStore.Load <T>(id));
 }
Beispiel #2
0
 public T Load <T>(object id) where T : IEntity
 {
     return(_dbStore.Load <T>(id));
 }