在 ActiveRecord 我有:
class Patient < ActiveRecord::Base
end
在 DataMapper 我有:
class Patient
include DataMapper::Resource
property :id, Serial
property :name, String
has n, :orders
# ... a lot of properties and associations more
end
如何在 DataMapper 中自动获取列名?