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

            command.Connection = this;
            return(command);
        }
示例#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 ();
		}
示例#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;
		}
示例#7
0
 internal TdsParameterCollection(TdsCommand command)
 {
     this.command   = command;
     metaParameters = new TdsMetaParameterCollection();
 }
		internal TdsParameterCollection (TdsCommand command)
		{
			this.command = command;
			metaParameters = new TdsMetaParameterCollection ();
		}