private void LoadTables() { Sales.Load(); Deposits.Load(); Referents.Load(); Categories.Load(); Articles.Load(); Manufacturers.Load(); }
private static readonly string conName = "BankDB"; //Имя подключения /// <summary> /// Создает экземпляр класса BankDBContext /// </summary> /// <param name="connection">Строка подключения</param> public BankDbContext(string connection = null) : base(connection == null? conName : connection) { Departaments.Load(); if (Departaments == null || Departaments.Count() == 0) { BaseFill(); } Clients.Load(); Credits.Load(); Deposits.Load(); Logs.Load(); Organisations.Load(); CreditHistories.Load(); }