public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.shops = new List<Shop>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllShops()) mm.shops.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.authors = new List<Author>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllAuthors()) mm.authors.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.payments = new List<Payment>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllPayments()) mm.payments.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.bookVariableInfoes = new List<BookVariableInfo>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllBookVariableInfoes()) mm.bookVariableInfoes.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.languages = new List<Language>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllLanguages()) mm.languages.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.individuals = new List<Individual>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllIndividuals()) mm.individuals.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.books = new List<Book>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (Book entry in db.GetAllBooks()) { mm.books.Add(entry); } } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.addresses = new List<Address>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (Address entry in db.GetAllAddresses()) { mm.addresses.Add(entry); } } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.streetTypes = new List<StreetType>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (StreetType entry in db.GetAllStreetTypes()) { mm.streetTypes.Add(entry); } } return mm; }
//private BookMarketDbContext _db = BookMarketDbContext._db; public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); /*var query = (from item in this._db.WebMoneys orderby item.Id ascending select item); mm.webmoneys = query != null ? query.ToList<WebMoney>() : null;*/ mm.webmoneys = new List<WebMoney>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllWebmoneys()) mm.webmoneys.Add(entry); } return mm; }
public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.basketItems = new List<BasketItem>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllBasketItems()) mm.basketItems.Add(entry); } return mm; }