コード例 #1
0
        /// <summary>
        /// Read in plants and  related intakes
        /// Tables DRWPLANT, DRWPLANTINTAKE are filled.
        /// </summary>
        /// <param name="DataBaseFileName"></param>
        public void ReadPlantData()
        {
            DRWPLANTTableAdapter DTA = new DRWPLANTTableAdapter();

            DTA.Connection.ConnectionString = ConnectionString;
            DTA.Fill(DRWPLANT);
            DTA.Dispose();

            DRWPLANTINTAKETableAdapter DTIA = new DRWPLANTINTAKETableAdapter();

            DTIA.Connection.ConnectionString = ConnectionString;
            DTIA.Fill(DRWPLANTINTAKE);
            DTIA.Dispose();

            DRWPLANTCOMPANYTYPETableAdapter dca = new DRWPLANTCOMPANYTYPETableAdapter();

            dca.Connection.ConnectionString = ConnectionString;
            dca.Fill(DRWPLANTCOMPANYTYPE);
            dca.Dispose();
        }
コード例 #2
0
ファイル: JupiterXL.cs プロジェクト: XiBeichuan/hydronumerics
    /// <summary>
    /// Read in plants and  related intakes
    /// Tables DRWPLANT, DRWPLANTINTAKE are filled.
    /// </summary>
    /// <param name="DataBaseFileName"></param>
    public void ReadPlantData()
    {
      DRWPLANTTableAdapter DTA = new DRWPLANTTableAdapter();
      DTA.Connection.ConnectionString = ConnectionString;
      DTA.Fill(DRWPLANT);
      DTA.Dispose();

      DRWPLANTINTAKETableAdapter DTIA = new DRWPLANTINTAKETableAdapter();
      DTIA.Connection.ConnectionString = ConnectionString;
      DTIA.Fill(DRWPLANTINTAKE);
      DTIA.Dispose();

      DRWPLANTCOMPANYTYPETableAdapter dca = new DRWPLANTCOMPANYTYPETableAdapter();
      dca.Connection.ConnectionString = ConnectionString;
      dca.Fill(DRWPLANTCOMPANYTYPE);
      dca.Dispose();

    }