0

I'm using Visual Studio 2010 (SP1) with EF. When I tried to update the edmx file of my application, the SSDL Content part of the file gets emptied. Consequences are that the mapping details of every entity is emptied, meaning tables that already exist don't refresh.

For example, the SSDL Content section looked like this before :

<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="DataAccess.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
    <EntityContainer Name="DataAccessStoreContainer">
      <EntitySet Name="Amdec" EntityType="DataAccess.Store.Amdec" store:Type="Tables" Schema="dbo" />
...

After, I got that :

<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="DataAccess.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
    **<EntityContainer Name="DataAccessStoreContainer"/>**

Any clue ?

4

1 に答える 1

0

Thank you Pawel, I used integrated security on the edmx connection string since I can access the server but I have no rights on the database itself. I replaced it with SQL connection credential and it works fine now.

于 2012-10-05T07:33:27.060 に答える