何らかの理由で私は同じ名前の3種類のテーブルを持つデータベースを持っていますが、接頭辞は異なります。私は手動でのみdbo.SpRicezioneSpedizioniLightテーブルを実装する必要があり、私はこの2つのクラスがあり実現しているEntity FrameworkのConnectionStringが重複したテーブルを持つApp Configにあります
:
public class SpRicezioneSpedizioniLight
{
public string AudOperation { get; set; }
public Nullable<System.DateTime> AudDateLog { get; set; }
public int PROGRESSIVO { get; set; }
}
public class GemapDbContext : DbContext
{
public DbSet<SpRicezioneSpedizioniLight> SpRicezioneSpedizioniLights { get; set; }
}
私は特定のテーブルをどのように識別することができますが、データベースのスキーマはこれですdbo.SpRicezioneSpedizioniLight?今のところ、私の接続文字列は:
<add name="SABIntegrationEntities" connectionString="metadata=res://*/Models.ModelTest.csdl|res://*/Models.ModelTest.ssdl|res://*/Models.ModelTest.msl;provider=System.Data.SqlClient;provider connection string="data source=localhost;initial catalog=SABIntegration;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings>
これはすべて、1つのテーブルを持つローカルデータベースで正常に動作します。
はあなた