sql macro error
От: Flem1234  
Дата: 12.01.10 15:48
Оценка:
Этот код:
using System;
using System.Console;
using Nemerle.Utility;
using Nemerle.Data;
using System.Data.SqlClient;

module Program
{
  Main() : void
  {
    def c = SqlConnection("Data Source=dev-w;Initial Catalog=Northwind;Integrated Security=True");
    c.Open();
    ExecuteReaderLoop ("select CustomerID from Customers", c, 
        { WriteLine("test"); });
  }
}


не компилируется

Error    1    KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'    
Error    2    KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'    
Error    3    the meaning of `ExecuteReaderLoop' does not allow this operation    
Error    4    KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'    
Error    5    the meaning of `ExecuteReaderLoop' does not allow this operation


Почему?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.