view 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
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.Linq;
using SilverlightAsyncRestWcf.Common;

namespace SilverlightAsyncRestWcf.Services
{
    public interface IRepository<T> where T : class
    {
        T GetById(string id);
        IQueryable<T> GetAll();
        void Insert(T entity);
        void Update(T entity);
        void Delete(string id);
    }

    public interface IRepository
    {
        object GetById(string id);
        IQueryable GetAll();
        void Insert(object entity);
        void Update(object entity);
        void Delete(string id);
    }
}