实体框架连接字符串定义 [英] Entity Framework Connection String Definition

查看:88
本文介绍了实体框架连接字符串定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,实体框架连接字符串是什么意思?
喜欢:

I was just wondering that, what is Entity Framework Connection String really mean? Like:

metadata = res://*/Models.Model1.csdl | res://*/Models.Model1 .ssdl | res://*/Models.Model1.msl; provider = System.Data.SqlClient; provider connection string =data source = testSource; initial catalog = CatalogName; user id = sa; password = ***** ******; multipleactiveresultsets = True;应用程序名称= EntityFramework

我知道 provider = System.Data .SqlClient; provider connection string =data source = testSource; initial catalog = CatalogName; user id = sa; password = **

任何人都可以告诉我什么是string 元数据= RES://*/Models.Model1.csdl | RES://*/Models.Model1.ssdl | RES://*/Models.Model1.msl;
是什么意思?

Can anyone tell me what does string metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl; mean?

另外还有一件事我需要确认,如果我想在实体连接字符串中编辑,我可以做吗? p>

And, one more thing i need to confirm, if i want to edit in the Entity Connection String, can i do it?

推荐答案

元数据字段在EF连接字符串中是必需的,并指定:

The metadata field is required in an EF connection string and specifies:



中的目录,文件和资源位置的管道分隔列表,用于查找模型和映射信息。

A pipe-delimited list of directories, files, and resource locations in which to look for model and mapping information.

(来源: http://msdn.microsoft.com/en-us/library/system.data.entityclient.entityconnection.connectionstring.aspx

或p换句话说:


指向元数据文件的指针(概念模式定义层
[CSDL],映射模式图层[ MSL]和存储模式定义层
[SSDL])

The pointer to the metadata files (Conceptual Schema Definition Layer [CSDL], Mapping Schema Layer [MSL], and Store Schema Definition Layer [SSDL])

(source: http://msdn.microsoft.com/en-us/library/orm-9780596520281-01 -16.aspx

这篇关于实体框架连接字符串定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆