El Blog de Pedro Hurtado
Yo por un byte si lucho:)
Ver por etiquetas
Todas las etiquetas
»
Arquitectura
(
RSS
)
c#
csharp
Entity Framework
El respositorio genérico.Un Derrochador en épocas de crisis.
Published 7/6/2012 11:56 |
Pedro Hurtado
Durante muchos días,semanas,meses e incluso años he visto la siguiente definición de un repositorio. 1. Interface IRepository. 1: public interface IRepository<T> where T: class 2: { 3: T Get( int Id); 4: T Insert(T Entity); 5: void Update(T Entity); 6: void Delete(T Entity); 7: IEnumerable<T> GetAll(); 8: 9: IUnitOfWork UnifOfWork { get;} 10: } 2. Interface IUnitOfWork 1: public interface IUnitOfWork 2: { 3: void Commit(); 4: void RollBack(); 5: } 3. Interface IContext...
Search
Ir
Mi blog
Inicio
Contacto
Tags
ADO.NET
Arquitectura
c#
csharp
EF
Entity Framework
Javascript
Javascript,WinJS
Jquery
Knockout
MVC
node
Razor
Sql Azure
WinJS
Blogs Amigos
Luis Franco
Nicolas Herrera
Rodrigo Corral
Archivo
November 2012 (2)
October 2012 (3)
June 2012 (3)
May 2012 (5)
April 2012 (3)
March 2012 (3)
Comunidades
Syndication
RSS
ATOM
RSS de comentarios
Notificaciones por mail
Suscribirse
Twitter
Encuentrame en facebook