The default Code First Conventions determine things like which property becomes the primary key of an entity, the name of the table an entity maps to, and what precision and scale a decimal column
has by default. Custom Code First Conventions let you define your own conventions that provide configuration defaults for your model.
Please refer to the link below for more information:
Hi zzdfc, I this you have to create ALL you pages manually at the moment, I know the team were looking into creating a project template for that but I don't think they have gotten anywhere yet.
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
hi zzdfc,there is currently an issue with EF6 and Wef Forms, there will be an update to the EntityDataSource soon I believe and then it will be straight forward. Oops wrong thread if you look at the videos
on model binding from Build13 etc. on channel 9 you shoulds get all you need.
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
Member
38 Points
160 Posts
How to remake DD project with Model Binding to adapt EF6?
Jan 02, 2014 02:50 AM|zzdfc|LINK
How to remake DD project with Model Binding to adapt EF6?
All-Star
15648 Points
2151 Posts
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 02, 2014 09:40 PM|Happy Chen - MSFT|LINK
hi zzdfc ,
Had you tried to use Code First?
The default Code First Conventions determine things like which property becomes the primary key of an entity, the name of the table an entity maps to, and what precision and scale a decimal column has by default. Custom Code First Conventions let you define your own conventions that provide configuration defaults for your model.
Please refer to the link below for more information:
Custom Code First Conventions
http://msdn.microsoft.com/en-us/data/jj819164
Hope it helps you.
Member
38 Points
160 Posts
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 02, 2014 09:48 PM|zzdfc|LINK
Hi Happy Chen:
I have used Database First.
I want to remakd my DD project with Model Binding because EF6 don't support EntityDataSource for Dynamic Data.
Thanks.
Participant
960 Points
288 Posts
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 03, 2014 03:38 AM|galeny|LINK
hi zzdfc,
if you use Database First, i think it is impossible to make DD project with Model Binding to EF6. i suggest you using Code First.
You can refer to the link for details:
EF6 support for ASP.NET WebForms EntityDataSource
http://entityframework.codeplex.com/discussions/434936
All-Star
17916 Points
5681 Posts
MVP
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 03, 2014 05:21 AM|sjnaughton|LINK
Hi zzdfc, I this you have to create ALL you pages manually at the moment, I know the team were looking into creating a project template for that but I don't think they have gotten anywhere yet.
Always seeking an elegant solution.
Member
38 Points
160 Posts
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 15, 2014 04:44 AM|zzdfc|LINK
Hi sjnaughton:
You can give me website of the team that were looking into creating a project template for that,please?
thanks!
All-Star
17916 Points
5681 Posts
MVP
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 15, 2014 05:58 AM|sjnaughton|LINK
hi zzdfc,there is currently an issue with EF6 and Wef Forms, there will be an update to the EntityDataSource soon I believe and then it will be straight forward. Oops wrong thread if you look at the videos on model binding from Build13 etc. on channel 9 you shoulds get all you need.
Always seeking an elegant solution.
Member
38 Points
160 Posts
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 29, 2014 08:48 AM|zzdfc|LINK
Hi sjnaughton:
Can you give me a link of the videos on model binding from Build13,please?
All-Star
17916 Points
5681 Posts
MVP
Re: How to remake DD project with Model Binding to adapt EF6?
Jan 29, 2014 09:32 AM|sjnaughton|LINK
i think that would be here What’s New in ASP.NET and Visual Studio 2013 but it may be this instead Create rich, data-driven Web apps with ASP.NET 4.5 Web Forms from //Build11
Always seeking an elegant solution.