public void Dispose() { if (context != null) { context.Dispose(); context = null; } }
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); }
public ClientRepository(DataBaseModelContainer context) { this.context = context; }
public SaleInfoRepository(DataBaseModelContainer context) { this.context = context; }
public UnitFactory() { context = new DataBaseModelContainer(); }
public ManagerRepository(DataBaseModelContainer context) { this.context = context; }
public ProductRepository(DataBaseModelContainer context) { this.context = context; }