Пример #1
0
        /// <summary>
        /// Получение данных по ИД адреса
        /// </summary>
        /// <param name="addressId">ИД адресса</param>
        public void GetData(int addressId)
        {
            string sqlstr = $"SELECT * FROM ADDRESS_CATALOG WHERE ADDRESS_ID = {addressId}";

            using (OracleConnection connection = GetConnection())
            {
                adressCatalog = connection.QueryFirstOrDefault <AddresCat>(sqlstr, null);
            }
        }
Пример #2
0
 /// <summary>
 /// Конструктор создания модели Address_catalogue
 /// </summary>
 /// <param name="interfaceMng"></param>
 public AddressEngine(TL4EngineInterfaceMngRepo interfaceMng)
 {
     interf             = interfaceMng;
     this.adressCatalog = new AddresCat();
 }