Here are the examples of the csharp api class BookStore.Repositories.BookRepository.GetBooksListFromCommand(System.Data.SqlClient.SqlCommand) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: rhino-tools
Source File: BookRepository.cs
Source File: BookRepository.cs
public IList<Book> GetBookList() { return With.Transaction<IList<Book>>(delegate(SqlCommand command) { command.CommandType = System.Data.CommandType.Text; command.CommandText = "SELECT ISBN, Name FROM Books"; return GetBooksListFromCommand(command); }); }
0
2. Example
Project: rhino-tools
Source File: BookRepository.cs
Source File: BookRepository.cs
public ICollection<Book> GetBooksCheckedOutBy(User user) { return With.Transaction<ICollection<Book>>(delegate(SqlCommand command) { command.CommandType = System.Data.CommandType.StoredProcedure; command.CommandText = "BookGetAllCheckedOutByUser"; command.Parameters.AddWithValue("userid", user.ID); return GetBooksListFromCommand(command); }); }