Last change
on this file since 9596 was
9579,
checked in by spimming, 12 years ago
|
#1888:
- Revised model classes
- Modified relationship definitions according to model types
|
File size:
838 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Services.Optimization.Billing.DataAccess;
|
---|
3 | using HeuristicLab.Services.Optimization.Billing.Model;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Services.Optimization.Billing.Test {
|
---|
6 | class Program {
|
---|
7 | static void Main(string[] args) {
|
---|
8 | using (var context = new BillingContext()) {
|
---|
9 | System.Data.Entity.Database.SetInitializer(new HeuristicLab.Services.Optimization.Billing.DataAccess.BillingContext.BillingContextInitiliazer());
|
---|
10 | }
|
---|
11 |
|
---|
12 | //BillingService srv = new BillingService();
|
---|
13 | BillingDao dao = new BillingDao();
|
---|
14 | var products = dao.FindAllProducts();
|
---|
15 | foreach (Product p in products) {
|
---|
16 | Console.WriteLine(string.Format("{0}: {1}", p.ProductId, p.Name));
|
---|
17 | }
|
---|
18 |
|
---|
19 | Console.WriteLine("Press any key to exit...");
|
---|
20 | Console.ReadKey();
|
---|
21 | }
|
---|
22 | }
|
---|
23 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.