简体   繁体   English

在哪里可以找到GetSourceSchemaTypes例程的定义?

[英]Where can I find definitions of the GetSourceSchemaTypes routine?

I'm digging deeper into Entity Framework Templating and want to find out more about the GetSourceSchemaTypes routine, used here as an example 我正在深入研究实体框架模板,并想了解有关GetSourceSchemaTypes例程的更多信息,在此用作示例

foreach (EntityType entity in GetSourceSchemaTypes<EntityType>().OrderBy(e => e.Name))
{
}

It appears to be part of the Microsoft.VisualStudio.TextTemplating namespace but I can't find that on MSDN. 它似乎是Microsoft.VisualStudio.TextTemplating命名空间的一部分,但我在MSDN上找不到它。

I'm looking for something specific but the answer may be revealed in the definition of this routine. 我正在寻找特定的东西,但答案可能会在此例程的定义中显示。

thanks 谢谢

GetSourceSchemaTypes ( Microsoft.VisualStudio.TextTemplating namespace) can be found in the Microsoft.VisualStudio.TextTemplating assembly (Microsoft.VisualStudio.TextTemplating.dll) delivered with the Visual Studio SDK 可以在Visual Studio SDK附带的Microsoft.VisualStudio.TextTemplating程序集(Microsoft.VisualStudio.TextTemplating.dll)中找到GetSourceSchemaTypesMicrosoft.VisualStudio.TextTemplating命名空间)。

You can use a .NET decompiler to have a look at the code. 您可以使用.NET反编译器查看代码。

ILSpy is free and works fine: http://ilspy.net/ ILSpy是免费的并且可以正常运行: http ://ilspy.net/


If you have any difficulty to locate the Microsoft.VisualStudio.TextTemplating assembly, you can have a look at this question: Cannot find Microsoft.VisualStudio.TextTemplating assembly :) 如果找不到Microsoft.VisualStudio.TextTemplating程序集有任何困难,可以看一下这个问题: 找不到Microsoft.VisualStudio.TextTemplating程序集 :)

For example, if you use Visual Studio 2012 the assembly may be here: 例如,如果您使用Visual Studio 2012,则程序集可能在此处:

C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VSSDK\\VisualStudioIntegration\\Common\\Assemblies\\v4.0 C:\\ Program Files(x86)\\ Microsoft Visual Studio 11.0 \\ VSSDK \\ VisualStudioIntegration \\ Common \\ Assemblies \\ v4.0

PS: I don't understand why this answer is downvoted, there is nothing wrong with decompiling.. It's a nice tool to improve understanding of something.. PS:我不明白为什么这个答案不正确,反编译没有错。.这是一个很好的工具,可以增进对某些东西的理解。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM