Esempio n. 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;
 }
Esempio n. 3
0
 public static void Add <TEnt>(this IXRepository <TEnt> repo, params TEnt[] ents)
     where TEnt : IXTransaction
 {
     repo.AddRange(ents);
 }
Esempio n. 4
0
 public static void Add <TEnt>(this IXRepository <TEnt> repo, params TEnt[] ents)
 {
     repo.AddRange(ents);
 }