S
shapper
Hello,
This might be a strange question but I am creating a few repositories
and I am looking how should I name my methods. I have been looking in
C# and I came up with the following:
public interface IAlbumRepository {
void Add(Album album);
IQueryable<Album> FindAll();
Album FindById(Int32 id);
void Remove(Int32 id);
void Save();
void Update(Album album);
} // IAlbumRepository
What do you think?
Previously I had "Create", "Delete", etc.
But I think this is maybe closer to what is usually done. Not?
Thanks,
Miguel
This might be a strange question but I am creating a few repositories
and I am looking how should I name my methods. I have been looking in
C# and I came up with the following:
public interface IAlbumRepository {
void Add(Album album);
IQueryable<Album> FindAll();
Album FindById(Int32 id);
void Remove(Int32 id);
void Save();
void Update(Album album);
} // IAlbumRepository
What do you think?
Previously I had "Create", "Delete", etc.
But I think this is maybe closer to what is usually done. Not?
Thanks,
Miguel