How to (easily) find the correct assembly for a given namespace

I have some problems with some attributes. I can not find the correct assembly. I also can not find them in google:

 [Key, Column(Order = 0)]
 [DatabaseGenerated(DatabaseGenerationOption.None)]

The following namespaces are declared in this> code:

using System.Data.Entity.Database;
using System.Data.Entity.Infrastructure;

Where can I find assemblies for these namespaces? Isn't there an easy way to find an assembly besides finding a namespace on Google?

+3
source share
7 answers

If you have an assembly reference:

  • Go to the ad. ( F12in Visual Studio, when the cursor is in the definition you are looking for.)
  • A browser of objects should appear. At the root of the tree you can see the assembly.

If you did not reference the assembly:

  • (View → Object Browser).
  • " ",... .

, , Microsoft:

, , , Microsoft. " " . , . , , , , , Google.

+2

System.Data.* , EntityFramework, DatabaseGeneratedOption ( DatabaseGenerationOption).

+2

, namespace CLR. namespace + . . , . , (StartsWith), , .

+1

, , , , :

.

+1

MSDN, , System.Data.Entity.Design.dll, , .

MSDN .

0

. , , Google, MSDN, Microsoft.

, . , .

Please note that this question largely duplicates the part of your question that I am answering.

0
source

Here is your solution adding this namespace resolution:

using System.ComponentModel.DataAnnotations.Schema;
-1
source

Source: https://habr.com/ru/post/1790963/


All Articles