asp.net mvc - edmx populating mdf? -


When I am creating a database from the model in the 'ADMX' file, it asks for a data source and creates a SQL file and the data Adds source to source.config

If I select sqlserver as source, then it works fine and I can either use existing database or create a new one and use tables It gets populated and ready for its use

making possible To that SQL populate a new MDF file in any way?

- -------------------------------------- ----------- - Unit Designer DDL script for SQL Server 2005, 2008, and Azure - --------------------- - --------------------------- Date Created: 08/25/2010 10:41:33 - generated from ADMX file: C: \ test \ Test.edmx - --------------------------------------- ------ ----- SET QUOTED_IDENTIFIER closed; Go [Examination]; Go if SCHEMA_ID (N'dbo ') is NULL EXECUTE (N'CREATE SCHEMA [DBO]'); Geo

...

Works fine against sqlserver, but do not I know that when I connect to Scalaxap and a local MDF file in Project Dye Populate?

Do I have to use it in any way to link the connection to app.config? Or can you first create a database in SQL Manager? Or can any one modify the generated SQL (along with the path of my created MDF)?

Thank you very much

I tried to run a query like this, Which is local in the solution By clicking on MDF and selecting "New query". I had to remove "use [test]" and all "ge" in the query text and it used to produce my tables properly.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -