Created
January 16, 2014 22:25
-
-
Save lnickers2004/8464710 to your computer and use it in GitHub Desktop.
REPOSITORY SAMPLE:
an example simple repository interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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