Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EF4 how to switch schema (e.g. dbo -> custId) so that identical tables are stored under multiple schemas
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="Model.Store" Alias="Self" Provider="System.Data.SqlClient"
- ProviderManifestToken="2008"
- xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator"
- xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
- <EntityContainer Name="ModelStoreContainer">
- <EntitySet Name="TestEntitySet" EntityType="Model.Store.TestEntitySet"
- store:Type="Tables" Schema="dbo" />
- </EntityContainer>
- <EntityType Name="TestEntitySet">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity"
- Nullable="false" />
- </EntityType>
- </Schema>
- </edmx:StorageModels>
Advertisement
Add Comment
Please, Sign In to add comment