public TdsDataAdapter (TdsCommand selectCommand) 
		{
			DeleteCommand = new TdsCommand ();
			InsertCommand = new TdsCommand ();
			SelectCommand = selectCommand;
			UpdateCommand = new TdsCommand ();
		}
Example #2
0
        public TdsCommand CreateCommand()
        {
            TdsCommand command = new TdsCommand();

            command.Connection = this;
            return(command);
        }
Example #3
0
 public TdsDataAdapter(TdsCommand selectCommand)
 {
     DeleteCommand = new TdsCommand();
     InsertCommand = new TdsCommand();
     SelectCommand = selectCommand;
     UpdateCommand = new TdsCommand();
 }
		internal TdsDataReader (TdsCommand command)
		{
			this.command = command;
			schemaTable = ConstructSchemaTable ();
			resultsRead = 0;
			fieldCount = 0;
			isClosed = false;
			isSelect = (command.CommandText.Trim ().ToUpper ().StartsWith ("SELECT"));
			command.Tds.RecordsAffected = 0;
			NextResult ();
		}
Example #5
0
 internal TdsDataReader(TdsCommand command)
 {
     this.command = command;
     schemaTable  = ConstructSchemaTable();
     resultsRead  = 0;
     fieldCount   = 0;
     isClosed     = false;
     isSelect     = (command.CommandText.Trim().ToUpper().StartsWith("SELECT"));
     command.Tds.RecordsAffected = 0;
     NextResult();
 }
		public TdsCommand CreateCommand () 
		{
			TdsCommand command = new TdsCommand ();
			command.Connection = this;
			return command;
		}
Example #7
0
 internal TdsParameterCollection(TdsCommand command)
 {
     this.command   = command;
     metaParameters = new TdsMetaParameterCollection();
 }
		internal TdsParameterCollection (TdsCommand command)
		{
			this.command = command;
			metaParameters = new TdsMetaParameterCollection ();
		}