comparison SilverlightAsyncRestWcf/SilverlightAsyncRestWcf.Services/IRepository.cs @ 117:9eadccc3b46c

REST working, next step unit tests
author stevenh7776
date Sun, 27 May 2012 15:06:35 +0100
parents
children fa4ba8943048
comparison
equal deleted inserted replaced
116:d3380f499575 117:9eadccc3b46c
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using SilverlightAsyncRestWcf.Common;
5
6 namespace SilverlightAsyncRestWcf.Services
7 {
8 public interface IRepository<T> where T : class
9 {
10 T GetById(string id);
11 IQueryable<T> GetAll();
12 void Insert(T entity);
13 void Update(T entity);
14 void Delete(string id);
15 }
16
17 public interface IRepository
18 {
19 object GetById(string id);
20 IQueryable GetAll();
21 void Insert(object entity);
22 void Update(object entity);
23 void Delete(string id);
24 }
25 }