コード例 #1
0
ファイル: QueryBuilder.cs プロジェクト: dirtylion/smalltuba
        /// <summary>
        /// Construct the QueryBuilder.
        /// 
        /// Will initialize an instance of the Connector class
        /// and call the Connect() method of this.
        /// 
        /// Also calls the method Clear() which at this point
        /// works as a field initializer.
        /// </summary>
        public QueryBuilder()
        {
            this.connector = Connector.GetConnector();
            this.connector.Connect();

            Clear();
        }
コード例 #2
0
 public void SetUp()
 {
     this.connector = Connector.GetConnector();
     this.connector.Connect();
 }
コード例 #3
0
ファイル: Connector.cs プロジェクト: dirtylion/smalltuba
 public static Connector GetConnector()
 {
     return instance ?? (instance = new Connector());
 }