1
Vote

SQL Script generation with Default Values not working

description

Hello,
 
I am using the EF5 RC and VS 2012 and when I am creating a Database out of an Model the SQL Script does not have any Default Values set.
 
But I've set some default Values in the edmx Model for some Members like Int type and string type.
But the SQL Script looks like:
 
-- Creating table 'PersonSatz'
CREATE TABLE [dbo].[PersonSatz] (
[ID] int IDENTITY(1,1) NOT NULL,
[Vorname] nvarchar(max)  NOT NULL,
[Nachname] nvarchar(max)  NOT NULL,
[Typ] int  NOT NULL,
[Alter] int  NOT NULL,
[Spitzname] nvarchar(max)  NULL
);
 
there where no default values set.
 
thx much squadwuschel

comments