Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# using System.Data.Metadata.Edm

I am trying to use EntityType class, but I get an error when I try to use it. I did some digging and it appears I need to use this System.Data.Metadata.Edm.

I tried this...

using System.Data.

and I enter the . Metadata does not appear as an option....any suggestions

I am new at this.

I am using .NET Framework 3.5

like image 958
user1269625 Avatar asked Aug 15 '12 19:08

user1269625


People also ask

What is C in simple words?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

What is C language used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C or C++ same?

While C and C++ may sound similar, their features and usage differ. C is a procedural programming language that support objects and classes. On the other hand C++ is an enhanced version of C programming with object-oriented programming support.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.


3 Answers

if you use EF6, you should using System.Data.Entity.Core.Metadata.Edm.

like image 182
ross Avatar answered Oct 10 '22 01:10

ross


You need to add the reference System.Data.Entity.dll.

You can also check which assembly is need to some class in msdn

For example, for the EntityType:

http://msdn.microsoft.com/en-us/library/system.data.metadata.edm.entitytype.aspx

And you will see there the information about the assembly:

Assembly: System.Data.Entity (in System.Data.Entity.dll)

like image 20
Bruno Costa Avatar answered Oct 09 '22 23:10

Bruno Costa


Make sure you have referenced System.Data.Entity.dll in your project.

like image 21
Magnus Avatar answered Oct 09 '22 23:10

Magnus