Skip to content

Instantly share code, notes, and snippets.

@lnickers2004
Created January 16, 2014 22:25
Show Gist options
  • Save lnickers2004/8464710 to your computer and use it in GitHub Desktop.
Save lnickers2004/8464710 to your computer and use it in GitHub Desktop.
REPOSITORY SAMPLE: an example simple repository interface
using System;
using System.Linq;
using System.Linq.Expressions;
namespace MGMAuthCORS.Models
{
public interface IEventDataRepository : IDisposable
{
IQueryable<EventData> All { get; }
IQueryable<EventData> AllIncluding(params Expression<Func<EventData, object>>[] includeProperties);
EventData Find(string id);
void InsertOrUpdate(EventData eventdata);
void Delete(string id);
void Save();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment