I have an application that uses EF CTP5.
In this particular situation, I need to degrade to some classic ADO.NET (to read multiple result sets in a stored procedure that EF does not support).
Thus, I am trying to use an existing connection string from an object EntityConnection, for example:
var ctx = (this as IObjectContextAdapter).ObjectContext;
var efCon = ((EntityConnection) (ctx.Connection)).StoreConnection;
var con = new SqlConnection(efCon.ConnectionString);
con.Open();
When I debug, I see that it ConnectionStringdoes not contain a password, only a data source, username, database, etc.
This is a security issue, why did they delete it? Does EF hide the password somewhere and only use it when it executes stored procedures?
The EF connection string is not like the classic ADO.NET connection string, as it contains metadata information.
, , , , web.config .
, !