Beispiel #1
0
 public static TEnt Get <TEnt>(this IXRepository <TEnt> repo, string name)
     where TEnt : IXTransaction
 {
     if (repo.TryGet(name, out TEnt ent))
     {
         return(ent);
     }
     else
     {
         throw new EntityNotFoundException(name);
     }
 }
 public ZRepository(IXRepository xRepository, IYRepository yRepository)
 {
     _xRepository = xRepository;
     _yRepository = yRepository;
 }
Beispiel #3
0
 public static void Add <TEnt>(this IXRepository <TEnt> repo, params TEnt[] ents)
     where TEnt : IXTransaction
 {
     repo.AddRange(ents);
 }
Beispiel #4
0
 public static void Add <TEnt>(this IXRepository <TEnt> repo, params TEnt[] ents)
 {
     repo.AddRange(ents);
 }