林有点困惑。我看到一些代码,在我们使用Linq的一个项目到SQL脚手架或其他框架?
<MetadataType(GetType(Customer.CustomerMeta))> Partial Public Class Customer
Friend Class CustomerMeta
<Required(), StringLength(50)> Public Name As String
<Required(), StringLength(50)> Public Address As String
<Required(), StringLength(20)> Public EmailAddress As String
<StringLength(20)> Public Country As String
End Class
,为什么它是这样的创建,但它看起来像一个不同的方法已经从曾经被使用即时消息不是肯定的。
在阅读后,似乎技术可能是脚手架(http://msdn.microsoft.com/en-us/library/cc488469(v=vs.90).aspx),但通过本演练的一半,我意识到许多领域不存在(如global.asax文件)或适用于项目我看到上述代码我可能在这里错误的轨道上。
有谁知道上面正在使用什么技术/框架,如果有我可以参考的文章,以加快速度?如果在这里需要书籍或培训课程,那么我很高兴有人能指引我走向正确的方向。
感谢
Linq To SQL使用代码生成工具。我认为它的T4。 –