Guest User

Untitled

a guest
Jun 20th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. EF4 how to switch schema (e.g. dbo -> custId) so that identical tables are stored under multiple schemas
  2. <!-- SSDL content -->
  3. <edmx:StorageModels>
  4. <Schema Namespace="Model.Store" Alias="Self" Provider="System.Data.SqlClient"
  5. ProviderManifestToken="2008"
  6. xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator"
  7. xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
  8. <EntityContainer Name="ModelStoreContainer">
  9. <EntitySet Name="TestEntitySet" EntityType="Model.Store.TestEntitySet"
  10. store:Type="Tables" Schema="dbo" />
  11. </EntityContainer>
  12. <EntityType Name="TestEntitySet">
  13. <Key>
  14. <PropertyRef Name="Id" />
  15. </Key>
  16. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity"
  17. Nullable="false" />
  18. </EntityType>
  19. </Schema>
  20. </edmx:StorageModels>
Advertisement
Add Comment
Please, Sign In to add comment