예제 #1
0
 public IEnumerable <Tuple <string, string> > Fields(string table)
 {
     using (var tableSchema = Database.GetSchema("Columns", new string[] { null, null, table }))
         foreach (DataRow row in tableSchema.Rows)
         {
             yield return(new Tuple <string, string>(row["COLUMN_NAME"].ToString(), row["DATA_TYPE"].ToString()));
         }
 }