public void Create <T>() where T : class, new() { using (var con = new MockRepositoryConnection(ref db)) con.Create <T>(); }
public void DeleteAll <T>() where T : class, new() { using (var con = new MockRepositoryConnection(ref db)) con.DeleteAll <T>(); }
public T Save <T>(ref T item) where T : class, IRepoData, new() { using (var con = new MockRepositoryConnection(ref db)) return(con.Save(ref item)); }
public void Delete <T>(T item) where T : class, IRepoData, new() { using (var con = new MockRepositoryConnection(ref db)) con.Delete(item); }
public IQueryable <T> Search <T>() where T : class, new() { using (var conn = new MockRepositoryConnection(ref db)) return(conn.Search <T>()); }