该影射源会针对每个类,创建一个元表(MetaTable),用来描述表与实体之间的影射。在创建这个元表的时候,通过反射,检查 DataContext 是否有对应实体类的增删改的扩展方法,如果有...
基于66个网页-相关网页
以上来源于: WordNet
The functions setmetatable() and getmetatable() modify and query an object's metatable, respectively.
函数 setmetatable() 和 getmetatable() 分别对对象的元表进行修改和查询。
The keys of the metatable are called events; the values (in other words, the functions) are called metamethods.
元表的键值称为事件;值(换而言之就是函数)称为元方法。
The function String() takes a string, string, wraps it in a table ({value = s or ''}), and assigns the metatable mt to the table.
函数 String() 接收一个字符串 string,将其封装到一个表({value = s or ''})中,并将元表 mt 赋值给这个表。
应用推荐