public override DataTable ExecuteQueryAsDataTable (string sql)
		{
			if (String.IsNullOrEmpty ("sql"))
				throw new ArgumentException ("sql");

			DataTable table = new DataTable ();
			using (IDbCommand command = CreateCommand (sql)) {
				using (SybaseDataAdapter adapter = new SybaseDataAdapter (command as SybaseCommand)) {
					try {
						adapter.Fill (table);
					} catch {
					} finally {
						command.Connection.Close ();
					}
				}
			}
			return table;
		public SybaseCommandBuilder(SybaseDataAdapter adapter) 
		{
		}
Ejemplo n.º 3
0
 public SybaseCommandBuilder(SybaseDataAdapter adapter) : this()
 {
     DataAdapter = adapter;
 }
Ejemplo n.º 4
0
 public SybaseCommandBuilder()
 {
     adapter = null;
 }
		public SybaseCommandBuilder (SybaseDataAdapter adapter) : this ()
		{
			DataAdapter = adapter;
		}
		public SybaseCommandBuilder () 
		{
			adapter = null;
		}