locked
How to remake DD project with Model Binding to adapt EF6? RRS feed

  • Question

  • User745141034 posted

    How to remake DD project with Model Binding to adapt EF6?

    Thursday, January 2, 2014 2:50 AM

Answers

All replies

  • User-933407369 posted

    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.

    Thursday, January 2, 2014 9:40 PM
  • User745141034 posted

    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.

    Thursday, January 2, 2014 9:48 PM
  • User-227760790 posted

    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

    Friday, January 3, 2014 3:38 AM
  • User-330204900 posted

    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.

    Friday, January 3, 2014 5:21 AM
  • User745141034 posted

    Hi sjnaughton:

          You can give me website of the team that were looking into creating a project template for that,please?

    thanks!

    Wednesday, January 15, 2014 4:44 AM
  • User-330204900 posted

    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.

    Wednesday, January 15, 2014 5:58 AM
  • User745141034 posted

    Hi sjnaughton:

         Can you give me a link of  the videos on model binding from Build13,please?

    Wednesday, January 29, 2014 8:48 AM
  • User-330204900 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 29, 2014 9:32 AM