Пример #1
0
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
Пример #2
0
 public void Export(DataBaseModelContainer container)
 {
     CreateBindings(container.Bindings);
     CreateShelves(container.Shelves);
     CreatePublishers(container.Publishers);
     CreateAuthors(container.Authors);
     CreateBooks(container.Books);
     CreateCoAuthors(container.Books);
     CreateGenres(container.Books);
     CreateBookGenres(container.Books);
 }
Пример #3
0
 public ClientRepository(DataBaseModelContainer context)
 {
     this.context = context;
 }
Пример #4
0
 public SaleInfoRepository(DataBaseModelContainer context)
 {
     this.context = context;
 }
Пример #5
0
 public UnitFactory()
 {
     context = new DataBaseModelContainer();
 }
Пример #6
0
 public ManagerRepository(DataBaseModelContainer context)
 {
     this.context = context;
 }
Пример #7
0
 public ProductRepository(DataBaseModelContainer context)
 {
     this.context = context;
 }