comparison SilverlightAsyncRestWcf/SilverlightAsyncRestWcf.Services/IRepository.cs @ 118:fa4ba8943048

final version
author stevenh7776
date Sun, 27 May 2012 19:53:23 +0100
parents 9eadccc3b46c
children
comparison
equal deleted inserted replaced
117:9eadccc3b46c 118:fa4ba8943048
1 using System; 1 using System.Collections.Generic;
2 using System.Collections.Generic;
3 using System.Linq;
4 using SilverlightAsyncRestWcf.Common;
5 2
6 namespace SilverlightAsyncRestWcf.Services 3 namespace SilverlightAsyncRestWcf.Services
7 { 4 {
8 public interface IRepository<T> where T : class 5 public interface IRepository<T> where T : class
9 { 6 {
10 T GetById(string id); 7 T GetById(string id);
11 IQueryable<T> GetAll(); 8 IList<T> GetAll();
12 void Insert(T entity); 9 void Insert(T entity);
13 void Update(T entity); 10 void Update(T entity);
14 void Delete(string id); 11 void Delete(string id);
15 } 12 }
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 } 13 }