annotate SilverlightAsyncRestWcf/SilverlightAsyncRestWcf.Services/IRepository.cs @ 121:8f94475d3146 tip

final code
author stevenh7776
date Thu, 31 May 2012 15:35:26 +0100
parents fa4ba8943048
children
rev   line source
118
fa4ba8943048 final version
stevenh7776
parents: 117
diff changeset
1 using System.Collections.Generic;
117
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
2
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
3 namespace SilverlightAsyncRestWcf.Services
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
4 {
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
5 public interface IRepository<T> where T : class
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
6 {
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
7 T GetById(string id);
118
fa4ba8943048 final version
stevenh7776
parents: 117
diff changeset
8 IList<T> GetAll();
117
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
9 void Insert(T entity);
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
10 void Update(T entity);
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
11 void Delete(string id);
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
12 }
9eadccc3b46c REST working, next step unit tests
stevenh7776
parents:
diff changeset
13 }