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