实体框架的示例连接字符串。 [英] Sample Connection string for Entity framework.

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

问题描述

嗨朋友们,



我想要使用带有Windows身份验证的实体框架的SQL Server数据库的示例连接字符串。



我一直在搜索,我尝试了很多Windows身份验证。

什么都行不通!叹了口气!



你能不能请尽快帮助我。



关于

RK

Hi Friends,

I want sample Connection string for SQL Server DB using entity framework with windows authentication.

I've been searching a bit,and i tried a lot for windows authentication.
Nothing works!!! sighs!

So could you please help me with this ASAP.

With regards
R.K.

推荐答案

连接字符串格式如下



用于Sql身份验证

Connection strings format as below

For Sql authentication
Data Source=MyPc\SQLEXPRESS;Initial Catalog=My_DB;uid=im;pwd=pwd;timeout=100000;





用于Windows身份验证



For Windows authentication

Data Source=MyPc\SQLEXPRESS;Initial Catalog=My_DB;Integrated Security=false;



快乐编码!

:)


Happy Coding!
:)


你可以检查这篇文章知道我在使用实体框架时如何添加连接字符串



Silverlight应用程序与MVVM WCF和EF [ ^ ]
You can check this article to know how i added connection string when using entity framework

Silverlight Application with MVVM WCF and EF[^]


检查此....:)< br $>


Check This....:)

connectionString="Data Source=PC4-PC;Initial Catalog=DatabaseName;User ID=sa;Password=password_1"


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

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