Entity framework
http://msdn.microsoft.com/en-us/library/bb399572.aspx
http://msdn.microsoft.com/en-us/library/bb399567.aspx
SqlClient for Entity FrameworkTypes
http://msdn.microsoft.com/en-us/library/bb896344.aspx
Provider type name | Provider type attributes | EDMSimpleType name | Facets |
---|---|---|---|
bit |
n/a |
Edm.Boolean |
n/a |
tinyint |
n/a |
Edm.Byte |
n/a |
smallint |
n/a |
Edm.Int16 |
n/a |
int |
n/a |
Edm.Int32 |
n/a |
bigint |
n/a |
Edm.Int64 |
n/a |
float |
n/a |
Edm.Double |
n/a |
real |
n/a |
Edm.Double |
n/a |
decimal |
n/a |
Edm.Decimal |
Facet name
Attribute name
Value
Precision
MinimumMaximumDefaultConstant
13818False
Scale
MinimumMaximumDefaultConstant
0380False
|
numeric |
n/a |
Edm.Decimal |
Facet name
Attribute name
Value
Precision
MinimumMaximumDefaultConstant
13818False
Scale
MinimumMaximumDefaultConstant
0380False
|
smallmoney |
n/a |
Edm.Decimal |
Facet name
Attribute name
Value
Precision
DefaultConstant
10True
Scale
DefaultConstant
4True
|
money |
n/a |
Edm.Decimal |
Facet name
Attribute name
Value
Precision
DefaultConstant
19True
Scale
DefaultConstant
4True
|
binary |
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
180008000False
FixedLength
DefaultConstant
TrueTrue
|
varbinary
|
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
180008000False
FixedLength
DefaultConstant
FalseTrue
|
varbinary(max)
Note:
This type is not supported in SQL Server 2000.
|
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
214748364780True
FixedLength
DefaultConstant
FalseTrue
|
image |
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
2147483647True
FixedLength
DefaultConstant
FalseTrue
|
timestamp |
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
8True
FixedLength
DefaultConstant
TrueTrue
|
rowversion |
n/a |
Edm.Binary |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
8True
FixedLength
DefaultConstant
TrueTrue
|
smalldatetime |
n/a |
Edm.DateTime |
Facet name
Attribute name
Value
Precision
DefaultConstant
0True
|
datetime |
n/a |
Edm.DateTime |
Facet name
Attribute name
Value
Precision
DefaultConstant
3True
|
date
Note:
This type is not supported in SQL Server 2005 and SQL Server 2000.
|
n/a |
Edm.DateTime |
Facet name
Attribute name
Value
Precision
DefaultConstant
0Flase
|
time
Note:
This type is not supported in SQL Server 2005 and SQL Server 2000.
|
n/a |
Edm.Time |
Facet name
Attribute name
Value
Precision
DefaultConstant
7Flalse
|
datetime2
Note:
This type is not supported in SQL Server 2005 and SQL Server 2000.
|
n/a |
Edm.DateTime |
Facet name
Attribute name
Value
Precision
DefaultConstant
7Flalse
|
datetimeoffset
Note:
This type is not supported in SQL Server 2005 and SQL Server 2000.
|
n/a |
Edm.DateTimeOffset |
Facet name
Attribute name
Value
Precision
DefaultConstant
7Flalse
|
nvarchar
Note:
This type is not supported in SQL Server 2000.
|
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
140004000False
Unicode
DefaultConstant
TrueTrue
FixedLength
DefaultConstant
FalseTrue
|
varchar
Note:
This type is not supported in SQL Server 2000.
|
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
180008000False
Unicode
DefaultConstant
FalseTrue
FixedLength
DefaultConstant
FalseTrue
|
char |
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
180008000False
Unicode
DefaultConstant
FalseTrue
FixedLength
DefaultConstant
TrueTrue
|
nchar |
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
MinimumMaximumDefaultConstant
140004000False
Unicode
DefaultConstant
TrueTrue
FixedLength
DefaultConstant
TrueTrue
|
varchar(max) |
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
2147483647True
Unicode
DefaultConstant
FalseTrue
FixedLength
DefaultConstant
FalseTrue
|
nvarchar(max) |
n/a |
Edm.String |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
1073741823True
Unicode
DefaultConstant
TrueTrue
FixedLength
DefaultConstant
FalseTrue
|
ntext |
Attribute name
Value
Equal comparable
False
Ordercomparable
False
|
Edm.String |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
1073741823True
Unicode
DefaultConstant
FalseTrue
FixedLength
DefaultConstant
FalseTrue
|
text |
Attribute name
Value
Equal comparable
False
Order comparable
False
|
Edm.String |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
2147483647True
Unicode
DefaultConstant
FalseTrue
FixedLength
DefaultConstant
FalseTrue
|
Unique identifier |
Attribute name
Value
Equalcomparable
True
Order comparable
True
|
Edm.Guid |
n/a |
xml |
Attribute name
Value
Equal comparable
False
Order comparable
False
|
Edm.String |
Facet name
Attribute name
Value
MaxLength
DefaultConstant
1073741823True
Unicode
DefaultConstant
TrueTrue
FixedLength
DefaultConstant
FalseTrue
|
SqlClient for Entity Framework Functions
http://blogs.msdn.com/b/efdesign/archive/2009/01/07/model-defined-functions.aspx
http://msdn.microsoft.com/en-us/library/bb399302.aspx
Entity Data Model Tools
O. R. Mapping http://msdn.microsoft.com/zh-cn/library/cc716779(v=vs.110).aspx
Together with the Entity Framework runtime, the .NET Framework version 4 includes the EDM Generator (EdmGen.exe). This command prompt utility connects to a data source and generates model and mapping files based on a one-to-one mapping between entities and tables. It also uses a conceptual model file (.csdl) to generate an object layer file that contains classes that represent entity types and the ObjectContext. For more information, see EDM Generator (EdmGen.exe).
Visual Studio 2010 includes rich tool support for generating and maintaining model and mapping files in a Visual Studio application. The Entity Data Model Designer supports creating advanced mapping scenarios, such as table-per-type and table-per-hierarchy inheritance and split entities that map to multiple tables. For more information, see ADO.NET Entity Data Model Designer.
本文出自 “我的博客” 博客,谢绝转载!